I´m trying to change the toolbar Background color programmatically by doing this:
getSupportActionBar().setBackgroundDrawable(newColorDrawable(getResources()
Late, but I hope it would be helpful comment
I had this item in my Activity style
- someColor
so when I changed toolbar color, title and menu items didn't change background.
I just removed this item and now it works perfect.
I did not have time to understand the details, but I think it might be useful to someone else.