Android/XML
StatusBarColor
혀가 길지 않은 개발자
2020. 8. 3. 23:56
colors.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#6200EE</color>
<color name="colorPrimaryDark">#3700B3</color>
<color name="colorAccent">#03DAC5</color>
<color name="title_bg">#F1501E</color>
</resources>
strings.xml
<resources>
<string name="app_name">혀가 길지 않은 개발자 KotlinProject</string>
</resources>
styles.xml
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<!-- Status Bar Color -->
<item name="android:statusBarColor">@color/title_bg</item>
</style>
</resources>