Monday, March 30, 2015

How to change the Android ActionBar background from the default dark color

By default, the background color of the ActionBar in any Android App is black as shown in the example below.
I wanted to style the background to a different non-black color. After some investigation, I had to do the following:

Choose a color

Define a custom theme

Assign the custom theme to the application

Choose a color

Decide on a color to use for the background e.g. red or #303f9f in hex.