android - ActionBarSherlock Background Style -
to action bar blue have been using following code:
com.actionbarsherlock.view.menuinflater inflater = getsupportmenuinflater(); getsupportactionbar().setbackgrounddrawable(new colordrawable(color.parsecolor("#00bfff"))); but code not seem handy when user shifts other screen out of apps control. tried using style attribute
<item name = "android:background">#00bfff</item> but messes whole display of application. there missing ?? can please suggest me on ? how implement actionbarsherlock background ?
apply in styles.xml
<!-- "implementation" of our abs custom theme --> <style name="widget.styled.actionbar" parent="widget.sherlock.light.actionbar.solid.inverse"> <item name="titletextstyle">@style/titletext</item> <item name="android:background">@drawable/ab_background</item> <item name="background">@drawable/ab_background</item> <item name="android:titletextstyle">@style/titletext</item> </style> in <item name="background">create drawable 9 patch actionbar background.
Comments
Post a Comment