android - Get rid of blue line -
with of actionbarsherlock try app running on pre 3.0 devices. there blue divider in action bar, want have removed.
i figured out isn't divider, part of background graphic of action bar. rid of blue line decided override background this:
<style name="myactionbar" parent="android:widget.holo.actionbar"> <item name="android:background">@drawable/black</item> <item name="background">@drawable/black</item> </style>
i set background in java code:
getsupportactionbar().setstackedbackgrounddrawable(this.getresources().getdrawable(r.drawable.black));
as result blue line disappears on 4.x devices, still visible on 2.3.x devices. how rid of blue line on 2.3.x devices?
stupid mistake: used setstackedbackgrounddrawable
instead of setbackgrounddrawable
. works fine setbackgrounddrawable
. correct method set background of action bar. setstackedbackgrounddrawable
sets background of tab bar.
Comments
Post a Comment