How to turn off blue line under ActionBar (ActionB

2019-01-23 14:02发布

I use ActionBarSherlock with theme Theme.Sherlock.ForceOverflow (for using on pre Honeycomb devices) and I need turn off blue line under my ActionBar....is it possible?

SOLUTION: here

3条回答
Lonely孤独者°
2楼-- · 2019-01-23 14:34

I'm not sure if you can remove the bar but you could change the colour of the bar to match that of the background colour?

If you want to try it try this:

<item name="android:background">@drawable/your_theme_name</item>
<item name="background">@drawable/your_theme_name</item>
查看更多
欢心
3楼-- · 2019-01-23 14:34

That blue line under the ActionBar is part of the background image (which is a 9 patch). Change the background image, or set it to a solid color, and the blue bar will go away.

查看更多
做自己的国王
4楼-- · 2019-01-23 14:36

Another way to solve the problem:

actionBar.setBackgroundDrawable(null);

Only solves the problem locally though.

查看更多
登录 后发表回答