Reputation: 17
ActionBar actionBar = getSupportActionBar();
actionBar.setBackgroundDrawable(new ColorDrawable(Color.parseColor("#330000ff")));
actionBar.setStackedBackgroundDrawable(new ColorDrawable(Color.parseColor("#550000ff")));
I'm trying to change my actionbar and the tab backgrounds, using the code above, the actionbar background changes perfectly but the tab backgrounds doesn't change at all, I'd like to know if this is due to the fact that I use supportActionBar or not, if anyone has a solution, Thanks!
Upvotes: 0
Views: 1362
Reputation: 116392
it's easier to use it via xml.
have you tried out the next links:
https://developer.android.com/training/basics/actionbar/styling.html#CustomTabs
http://jgilfelt.github.io/android-actionbarstylegenerator/
?
Upvotes: 1