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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -