I am trying to change the textColor in my NavigationDrawer when item is selected.I am using RecyclerView as my swipe layout. This is based on the tutorial:
http://www.androidhive.info/2015/04/android-getting-started-with-material-design/
Anyone can suggest the solution
Thanks in Advance.
You can do this:
Define a static int in NavigationDrawerAdapter class to represent the selected item
In NavigationDrawerAdapter.java
In FragmentDrawer.java
I have figured out, how to change text color as well as the color of the entire view.
I've updated your FragmentDrawer.java
What I've basically done is, in the onClick() method of TouchListener.
This will change the background color of the view
Similarly since I've reference to the view, I could get reference to the TextView which is used inside layout of Drawer.