[Android development] The button in Android Studio cannot use the background to change the background color


Under the solution res/values/themes.xml

<style name="Theme.HelloWorld" parent="Theme.MaterialComponents.DayNight.DarkActionBar">

To

<style name="Theme.HelloWorld" parent="Theme.MaterialComponents.DayNight.DarkActionBar.Bridge"> 

Pro test is effective! ! !

Guess you like

Origin blog.csdn.net/weixin_42020386/article/details/112761608
Recommended