I would like to programmatically set the background of the ActionBar to draw as a specific color.
For the view, I would do this by setting the view background to a custom selector that uses my specific color for the βselectedβ state; then I would call View.setSelected (boolean) to enable or disable a specific color.
Is there a way to implement the same effect for elements in an ActionBar?
source share