How to change Custom Font of Android Menu Item?

前端 未结 10 2024
夕颜
夕颜 2020-12-05 02:17

I have the following Android Java and XML code. I want to change the font of Menu Items of my app. I know only that we can change the font of TextView using setTypeface but

10条回答
  •  难免孤独
    2020-12-05 03:08

    Create Style in styles.xml

     
    

    Add Below code into android.support.design.widget.NavigationView

     app:itemTextAppearance="@style/Style_TextView"
    

    Note: It works for android.support.design.widget.NavigationView

提交回复
热议问题