Custom background color for selected item with “activatedBackgroundIndicator” Navigation Drawer

后端 未结 2 2068
囚心锁ツ
囚心锁ツ 2021-02-19 20:35

This question has been asked a lot on SO, and I have referenced all the answers. I am still left with the default Holo blue background for selected items on my navigation drawe

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-19 20:57

    I have run into this exact problem. The issue is that the background of R.layout.fragment_navigation_drawer_list_item is what needs to be changed to your drawable. Simply add android:background="@drawable/activated_background" to the layout.

提交回复
热议问题