I am developing an Android app. In my app, I am using navigation view and drawer. What I want is I want to change the text color of checked item. I searched online and I found a link Change the color of a checked menu item in a navigation drawer . I followed it. But it is not working and just throwing error.
I also tried like this:
<android.support.design.widget.NavigationView
app:itemIconTint="@color/red"
app:itemTextColor="@color/colorAccent"
app:itemBackground="@color/white"
android:id="@+id/left_nv_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:background="@android:color/white" />
But the item text is never red even if it is checked. How can I achieve it? Actually, I want to customize the whole checked item.