android - How to change color of a specific acitonbar item -


i trying design actionbar (android version >=2.3 using support v7). want color of specific button different other buttons.

is there simple way ? example design below

enter image description here

you can activity class

in oncreate() method of activity add these lines , necessary imports.

        android.app.actionbar bar = getactionbar();         bar.setbackgrounddrawable(new colordrawable(color.parsecolor("#d44334"))); 

it works in support action bar well.


Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -