可以在res/values/styles.xml中,设置配色方案。
<resources> <style name="AppTheme" parent="android:ThemeOverlay.Material.ActionBar"> <!-- Customize your theme here. --> <item name="android:colorAccent">@color/color_Accent</item> <item name="android:colorPrimary">@color/color_Primary</item> <item name="android:colorPrimaryDark">@color/color_PrimaryDark</item> <item name="android:textColorPrimary">@color/color_textColorPrimary</item> <item name="android:windowBackground">@color/color_windowBackground</item> </style> </resources>
时间: 2024-07-28 17:54:14