Navigation Drawer item background colour for selected item
To solve this problem: 1- You don’t need android:listSelector under your ListView. 2- Open (or Create) styles.xml under (res/values). <!– Base application theme. –> <style name=”AppTheme” parent=”Theme.AppCompat.Light.DarkActionBar”> <!– Customize your theme here. –> <item name=”android:activatedBackgroundIndicator”>@drawable/drawer_list_selector</item> </style> 3- Under res/drawable folder create drawer_list_selector.xml file <selector xmlns:android=”http://schemas.android.com/apk/res/android”> <item android:state_pressed=”true” android:drawable=”@drawable/light_gray_color” /> <item android:state_activated=”true” android:drawable=”@drawable/red_color” /> <item android:drawable=”@android:color/transparent” … Read more