(转载)Android Studio Button 无法使用 Background 更改背景颜色
该篇文章转载自:博客园
res/values/themes.xml下的
<style name="Theme.HelloWorld" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
改为
<style name="Theme.HelloWorld" parent="Theme.MaterialComponents.DayNight.DarkActionBar.Bridge">