how to set the custom color to the android action bar using drawable files? -
<?xml version="1.0" encoding="utf-8"?> <resources> <!-- theme applied application or activity --> <style name="customactionbartheme" parent="@android:style/theme.holo.light.darkactionbar"> <item name="android:actionbarstyle">@style/myactionbar</item> </style> <!-- actionbar styles --> <style name="myactionbar" parent="@android:style/widget.holo.light.actionbar.solid.inverse"> <item name="android:background">@drawable/actionbar_background</item> </style> </resources>
after code how insert actionbar_background file in drawable color attribute ??????????
create drawable folder in res .. create xml
name actionbar_background
...
then copy in ...
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" > <solid android:color="your_custom_color" /> </shape>
now set custom colour in ...
Comments
Post a Comment