Changing ActionBar tabs underline color programmatically

Karthick picture Karthick · Apr 22, 2013 · Viewed 31.9k times · Source

I have created the action bar by

ActionBar actionbar = getActionBar()

The background of the action bar is changed by

actionbar.setBackgroundDrawable(actionBarBackgroundImage);

Now I need to change the action bar tabs underline color programmatically. Is there any method to change the action bar tabs underline color?

Answer

Litrik De Roy picture Litrik De Roy · Sep 3, 2013

Alternatively you could use Android Action Bar Style Generator to easily theme your action bar and tabs.