[英]Android change the title color in XML
I have this part of the code in drawer.xml. 我在drawer.xml中有这部分代码。
<item android:id="@+id/navigation_item1"
android:checkable="true"
android:title="Map"
android:textColor="#FFFFFF"
android:icon="@mipmap/ic_launcher"/>
I want to change the color of "Map" to white. 我想将“地图”的颜色更改为白色。 I tried android::textColor, it doesn't work.
我尝试了android :: textColor,它不起作用。 Can I get some help?
我可以帮忙吗?
Thanks! 谢谢!
<android.support.design.widget.NavigationView
android:id="@+id/navigation_view"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:layout_gravity="start"
app:headerLayout="@layout/header"
app:itemTextColor="#ffffff"
app:menu="@menu/drawer" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.