I want to change the color of the orange line below the ActionBar.
I've tried a few things but nothing has helped so far.
The current theme on my Galaxy S2 is an orange theme. So changing the theme, also changes the line. But I don´t know how to get access to that line, in order to change the color.
I used this ^_^ and it is 100% working:
and JUST USE THIS
In my case, in my application, I used the Holo theme.
Background toolbar is set through the property.
Standard Holo action bar background is nine-patch drawable like this:
nine patch drawable
So, if you want to change the color of the bottom line, you need to create a new nine-patch drawable. Create Resizable Bitmaps (9-Patch files)
Put the file in the folder drawable (example drawable-xxhdpi) and specify the path to the file in the theme.
There is A simpler way than this (Creating Bunch of Styles). Refering to this . Just set
This will Remove the line from Your Action Bar
You can use This code for achieving your purpose.
background.xml
styles.xml
These codes are suitable when you have not any options menu like image shows in question, if you have options menu you must customize your option menu items background.
If you have Option menu below code is suitable: