android - ActionBar Tab indicator color -


i want know how change tab indicator color. have tried multiple code none working, please me how change default color? below code using :

actionbar.setstackedbackgrounddrawable(getresources()                         .getdrawable(r.drawable.tab_selector)); 

tab_selector.xml

--> --> -->

<!-- focused states --> <item android:state_focused="true" android:state_selected="false" android:state_pressed="false" android:drawable="@drawable/cab_background_top_example" /> <item android:state_focused="true" android:state_selected="true" android:state_pressed="false" android:drawable="@drawable/cab_background_top_example" />  <!-- pressed --> <item android:state_selected="true" android:state_pressed="true" android:drawable="@color/tabcolor" /> <item android:state_pressed="true" android:drawable="@color/tabcolor" /> 

make custom actionbar. use http://jgilfelt.github.io/android-actionbarstylegenerator/


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -