Android Studio button background color change
Writing the front-end interface in Android Studio, modifying the background style of the Button has always been the default theme color
of the system. No matter how you change the color, it will be the default theme color of the system. Here we need to change
the Styles.xml or theme.xml file
Modify style.xml/theme.xml
<style name="Theme.Athena" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
Add the statement at the end here: .Bridge
<style name="Theme.Athena" parent="Theme.MaterialComponents.DayNight.DarkActionBar.Bridge">
As shown in the figure below:
Modified effect:
* PS: I set the background color of the button here to be transparent *