I want to set different color to selected item on Navigation Drawer and here's my code
<android.support.design.widget.NavigationView
android:id="@+id/nav_view"
android:layout_width="@dimen/navigation_width"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/nav_header_main"
app:menu="@menu/activity_main_drawer"
app:itemIconTint="@drawable/drawer_list_selector"
app:itemBackground="@drawable/drawer_list_selector"
app:itemTextColor="@drawable/nav_item_text"
/>
drawer_list_lesector.xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/light_pink_color" />
<item android:state_selected="true" android:drawable="@drawable/light_pink_color"/>
<item android:state_checked="true" android:drawable="@drawable/light_pink_color"/>
<item android:state_focused="true" android:drawable="@drawable/light_pink_color"/>
<item android:state_active="true" android:drawable="@drawable/light_pink_color"/>
<item android:drawable="@android:color/transparent" />
</selector>
light_grey_color.xml
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#F1F1F1"/>
</shape>
light_pink_color.xml
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#F1E1F1"/>
</shape>
and nav_item_text.xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@android:color/white" android:state_checked="true" />
<item android:color="#BBBBBB" />
</selector>
but it's still doesn't change selected item's color