New answers tagged button
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 ...
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="...
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 ...
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 ...
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 ...
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....
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 ...
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....
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, ...
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 ...
Top 50 recent answers are included
Related Tags
button × 40661android × 8993
html × 6545
javascript × 6259
css × 4060
java × 3406
c# × 3355
jquery × 2594
python × 2444
tkinter × 1546
wpf × 1426
onclick × 1273
ios × 1226
php × 1196
forms × 1102
image × 1083
swift × 1039
click × 1014
user-interface × 985
asp.net × 907
winforms × 803
reactjs × 716
xml × 692
function × 670
flutter × 569