My navigation drawer keeps showing the last selected item.Is there any way to remove it.I want that if the user is at Home page, the navigation drawer items should be non-highlighted.
I have tried
drawer.setSelected(false);
in onResume(). But it doesn't help.
Please refer the attached screenshot, it will help understand.
In addition to the above solutions, if group element in your drawer_view.xml file includes the below attribute,
android:checkableBehavior="single"
as shown in the below example :
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<group android:checkableBehavior="single" >
<item
... />
<item
... />
</group>
</menu>
none of the above solution works. So be sure that you do not use that attribute if you do not want that highlight feature.