Home  >  Forum  >  Android
Post New Query

Android - How to change ActionBar background color programmatically


joined on
November 02,2014
Asked on September 15,2015

How to change ActionBar background color in android programmatically

joined on
November 18,2013
Replied on September 16,2015

Write code in your activity class as follows.


ActionBar bar = getActionBar();
bar.setBackgroundDrawable(new ColorDrawable(Color.parseColor("#004D40")));

This will change background color as #004D40

joined on
November 02,2014
Replied on September 16,2015

Really Helpful. Thanks.

Write Answer









Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us