I have two questions about the navigation drawer template that give android studio.
I want change the text color of the menus ("notre histoire" etc.) and the hover of selected item (here it's green, i want make that in a other color).
As you can see, i managed to change the background color of the the action bar (here in pink) and change the background of the menu (here in blue).
But in my situation i didn't find how i can change the text color and the hover of selected items.
My constraint is that i don't can touch the xml files. I must do it programmatically.
Here is how i give my menus strings to the app :
String [] strTabMenu = new String[2];
strTabMenu[0] = "test1";
strTabMenu[1] = "test2";
mDrawerListView.setAdapter(new ArrayAdapter<String>(
getActionBar().getThemedContext(),
android.R.layout.simple_list_item_activated_1,
android.R.id.text1,
strTabMenu));
So, how can i now, with some code line, change the text color and the hover color without creating/updating some xml files ?
Thanks =)