Skip to main content

New answers tagged

0 votes
Accepted

SwiftUI ToolbarItem borderless button has untappable padding areas

In a ToolbarItem the tappable area of a borderless Button is based on the label view SwiftUI receives. If you pass only an Text and then style around it, parts of the visible frame can end up outside ...
eaydgdu's user avatar
0 votes

Remove blank spaces between buttons in HTML, CSS

You can put the buttons on the same line if you are not using flexbox for the div. This is the most straightforward approach, particularly when the number of buttons is small. <button class="...
Ashrafi's user avatar
Advice
0 votes
0 replies
0 views

How to toggle icon/image of Bootstrap button with jQuery and data attributes?

Sorted now. Solution was to use jQuery's html() method to get/set the inner HTML, rather than the text() method: <button class="btn btn-sm btn-primary" title="Click to read ...
Boycott A.I.'s user avatar
  • 18.9k
0 votes

SwiftUI ToolbarItem borderless button has untappable padding areas

The bloated shape is the default styling which buttons inside a toolbar get with iOS 26. Your observation that the interactive glass effect is triggered when tapping the edges of the shape, but the ...
Benzy Neez's user avatar
Best practices
0 votes
0 replies
0 views

How can I make a jackpot slot in android studio

Resource ids in Android are nummeric, and most of the system doesn't know what filename those resources ultimatively came from. That being said, looks like How to get a resource id with a known ...
Jannik S.'s user avatar
  • 260
0 votes
Accepted

How to set up button custom colors for enabled, disabled, light and dark

I discovered that I had defined the drawable state files incorrectly. I was confused and defined the color specification as drawable instead of color. They should be, for example: drawable/btn_text....
ceperman's user avatar
  • 477
Best practices
0 votes
0 replies
0 views

How can I make a jackpot slot in android studio

Please fix the title, it is confusing and unrelated to the actual question. Then [edit] the body of the question and explain more clearly what is the issue and provide an actual [mre]. Text that is ...
aled's user avatar
  • 26.6k
1 vote

How to set up button custom colors for enabled, disabled, light and dark

It doesn't work alike this. Just see styles.xml <!-- M3 outlined button style. --> <style name="Widget.Material3.Button.OutlinedButton" parent="Widget.Material3.Button....
Martin Zeitler's user avatar
0 votes

SwiftUI Keyboard Toolbar Conditional

With the help of ChatGPT I got this working (at least mostly -- I'm noticing a problem where the autoscroll to get the field above the keyboard is not longer "quite" working in some cases, ...
chadbag's user avatar
  • 1,857
2 votes
Accepted

Button with GlassProminentButtonStyle without the text effect

This behaviour of automatically glassifying the button label is only limited to very specific views like text and images. Most other kinds of views won't be glassified. Simply setting the foreground ...
Sweeper's user avatar
  • 294k

Top 50 recent answers are included