我有一个Ontario选项菜单,我可以改变测试颜色和背景,但不能改变顶部和底部的灰色颜色为蓝色在下面的图片。任何建议和解决方案welocme。
图片:
的数据
主题:
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/background</item>
<item name="colorPrimaryVariant">@color/background</item>
<item name="colorOnPrimary">@color/white</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/background</item>
<item name="colorSecondaryVariant">@color/background</item>
<item name="colorOnSecondary">@color/background</item>
<!-- Status bar color. -->
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
<!-- Dropdown Top and Bottom Color. -->
<item name="colorSurface">@color/background</item>
<!-- OncreateOptionsMenu Style -->
<item name="android:itemTextAppearance">@style/OptionsMenuStyle</item>
<item name="android:itemBackground">@color/background</item>
</style>
<!-- OncreateOptionsMenu Style -->
<style name="OptionsMenuStyle" parent="@style/TextAppearance.AppCompat.Widget.ActionBar.Title">
<item name="android:textColor">@color/white</item>
<item name="android:textStyle">italic</item>
</style>
字符串
1条答案
按热度按时间kmbjn2e31#
试试这个!
下面是styles.xml文件。
字符串