Google 最近发布 android.support.design.widget.NavigationView小部件作为com.android.support:design:22.2.0库的一部分,大大简化了(和标准化)创建NavigationDrawer的过程。
然而,根据设计规范,列表项目应该是Roboto培养基,14 to,87% #000000。NavigationView不公开任何textSize或textStyle来自定义此操作。


如果我对使用谷歌提供的NavigationView (或以任何其他方式定制)来维护正确的设计规范有什么选择呢?
发布于 2016-09-18 21:42:44
可以在xml文件中使用此属性。
app:itemTextAppearance="?android:attr/textAppearanceMedium"或用于小文本
app:itemTextAppearance="?android:attr/textAppearance"或者大的文本
app:itemTextAppearance="?android:attr/textAppearanceLarge"https://stackoverflow.com/questions/31204320
复制相似问题