setting background to Button has no effect
See original GitHub issueafter i fix my issue here #1649 and changing themr, my <Button> can not change his background
when i change Theme of design tool to AppCompat i can see my new backgound
after search i found that i should change <Button>
into <android.widget.Button>
, why we need this
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
AndroidX Setting Background Color on Button has NO Effect
I use this in android x instead of <Button and background color will changes <androidx.appcompat.widget.
Read more >Customize your background during a Microsoft Teams (free ...
Start or join your Teams meeting. In the pre-join screen, select the Background filters or Background effects The Background effects button button. In ......
Read more >How to Change the Background Color of Button in Android ...
Step 1: Create a New Project · Step 2: Working with the activity_main.xml file · Step 3: Add a resource directory named as...
Read more >ion-button - Ionic Framework
This property determines the background and border color of the button. By default, buttons have a solid background unless the button is inside...
Read more >Button | Components - BootstrapVue
Note the type prop has no effect when either href or to props are set. ... In need of a button, but not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@gabrielemariotti thank you very much 😃
@fAntel It is a different issue.
You can check in the Layout Inspector:
In your case since you are using a
Bridge
Theme, you are working with anAppCompatButton
.You can use:
or
otherwise use the
AppCompatButton
and theandroid:background
attribute.