Problem recurrence
- The background color is set to green , but
Button
the control is showing purple
solution
This is due to
Theme
modification, you only need to modify the propertiesthemes.xml
in the configuration fileparent
- If the file cannot be found, first change the project structure display
Project
to
Original configuration:
<style name="Theme.AndroidWalkthrough" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
After modification:
<style name="Theme.AndroidWalkthrough" parent="Theme.MaterialComponents.DayNight.Bridge">
<!-- option two -->
<style name="Theme.PROJECTNAME" parent="Theme.AppCompat.Light.NoActionBar">