我在我的应用程序中使用工具栏进行材料设计.一切正常,但除了改变菜单项文字颜色,我完全坚持解决方案.我还发布了应该采取的文本的截图和我在我的应用程序中使用的代码供您参考.我尝试了几种替代方法,例如分配如下
@color/white
#000
但是已知上述解决方案对我有用.
要求截图:
需要将SKIP菜单项从黑色更改为白色.
styles.xml
@color/blue
@color/blue
true
false
@style/DrawerArrowStyle
@color/white
#000
toolbar.xml
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
app:layout_scrollFlags="scroll|enterAlways"
android:fitsSystemWindows="true"
android:background="?attr/colorPrimary"/>
舱单
android:name=".activity.HomeActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:configChanges="keyboard|screenLayout|orientation"
android:theme="@style/ToolBarTheme">
我真的不知道我犯了什么错误.请帮我.提前致谢