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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -