Customizing Action Bar Sherlock
I have implemented Action bar Sherlock with theme.sherlock. The action bar has navigation tab. I have used styles for customizing the action bar. The style xml is shown below <
Solution 1:
All you have to do is setting the background
property of your xml. You can set the "color" transparent to remove it.
<?xml version="1.0" encoding="utf-8"?><layer-listxmlns:android="http://schemas.android.com/apk/res/android"><!-- Bottom Line --><item><shapeandroid:shape="rectangle"><solidandroid:color="@android:color/transparent" /></shape></item><!-- Color of your action bar --><itemandroid:bottom="2dip"><shapeandroid:shape="rectangle"><solidandroid:color="@color/action_bar_color" /></shape></item></layer-list>
Afterwards apply it in your theme:
<stylename="Widget.MyTheme.ActionBar"parent="Widget.Sherlock.ActionBar"><itemname="android:background">@drawable/action_bar_background</item><itemname="background">@drawable/action_bar_background</item></style>
Post a Comment for "Customizing Action Bar Sherlock"