I Want To Remove The Divider Under The Action Bar
What I'm trying to do is exactly as shown in the image' I want to remove this divider. I'm using the android built-in action bar. I don't want to use Sherlock Action Bar. I have t
Solution 1:
You can implement a Translucent Action Bar
:
Custom Translucent Android ActionBar
Show ImageView partly behind transparent ActionBar
Define themes
:
<resources><stylename="Theme.TranslucentActionBar"parent="@android:style/Theme.Holo.Light.DarkActionBar"><itemname="android:actionBarStyle">@style/Widget.ActionBar</item></style><stylename="Theme.TranslucentActionBar.ActionBar" /><stylename="Theme.TranslucentActionBar.ActionBar.Overlay"><itemname="android:actionBarStyle">@style/Widget.ActionBar.Transparent</item><itemname="android:windowActionBarOverlay">true</item></style></resources>
and styles for your Action Bar
:
<resources><stylename="Widget.ActionBar"parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse"><itemname="android:background">@drawable/ab_background</item></style><stylename="Widget.ActionBar.Transparent"><itemname="android:background">@android:color/transparent</item></style></resources>
Then apply it in your AndroidManifest.xml
.
Solution 2:
<stylename="AppTheme"parent="android:Theme.whatever_theme_you_have">
...
<itemname="android:windowContentOverlay">@null</item></style>
Solution 3:
The divider is contained for actionbar background image.
Try to change actionbar background image. Please refer to below codes.
<stylename="AppTheme"><itemname="android:actionBarStyle">@style/ActionBarStyle</item></style><stylename="ActionBarStyle"><itemname="android:background">{SET BACKGROUND FOR YOU}</item></style>
Post a Comment for "I Want To Remove The Divider Under The Action Bar"