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.

strange blue line

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

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -