Android theme

Android theme

Articles directory

Note: I am using Android Studio 4


I created an empty project but I found that the background color of the button is blue-purple


Why is the background color of the button, and why is everything blue-purple? The reason why the theme property of the AndroidManifest application is bloat, I believe everyone has seen this picture

If you have these themes on the Baidu theme, you will get this picture, but I found that the picture is too old and can no longer explain the current Android version. As shown in the picture below, the following content is automatically generated by Android. In the image below, you can see from the image below that it is an error in the above explanation.

Therefore, after testing, I have exceeded the value of each item, because it is the result of my testing. If there are inaccuracies, see the comments below to report

There are two more colors.

Solve the problem that the button color cannot be changed

Write the pattern yourself

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

Use this style in application attribute tags


Simply changing the theme can solve this problem.

Leave a Comment