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
Post a Comment