Navigation Drawer item background colour for selected item

后端 未结 13 1553
独厮守ぢ
独厮守ぢ 2020-11-28 23:54

I used Android Studio to implement the Navigation Drawer and I can\'t get the blue colour that is used to show which section we\'re currently in to change.

I\'ve tri

13条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-29 00:16

    This is working for me:

    1. First define a drawable item_bg.xml as:

      
          
              
          
      
    2. Then use this drawable in navigation_main_layout.xml as:

      
      

提交回复
热议问题