Accidentally delete the content under app/src/main/res/values/styles.xml
, just add one:
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">#A000</item> <!-- Set the color of the title at the top -->
<item name="colorPrimaryDark">#8000</item> <!-- Set the background color above the title -->
<item name="colorAccent">#00f</item> <!-- Response color of input box and button radio box -->
</style>
By the way, add the contents of colors.xml
and strings.xml
.
string.xml
:
<resources>
<string name="app_name">My Application</string>
</resources>
colors.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
<color name="purple_700">#FF3700B3</color>
<color name="teal_200">#FF03DAC5</color>
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
</resources>