Android Flat ActionBar (without shadow) -
I'm trying to create a flat action bar without shadows
Attached image:
my style xml
& lt; Resources & gt; & Lt ;! - Topics applicable to the application or activity - & gt; & Lt; Style name = "custom actionbeartheme" parent = "@ Android: style / theme. Hollow. Light" & gt; & Lt; Item name = "android: actionBarStyle" & gt; @ Style / myactionbar & lt; / Item & gt; & Lt; / Style & gt; & Lt ;! - Action style - & gt; & Lt; Style name = "MyActionBar" Original = "@Android: Style / Widget.Hello Light.Actionbar.Solid Andres" & gt; & Lt; Item name = "android: windowContentOverlay" & gt; @ Null & lt; / Item & gt; & Lt; Item name = "android: windowActionBarOverlay" & gt; True & lt; / Item & gt; & Lt; Item name = "Android: Background" & gt; @drawable / white_bg & lt; / Item & gt; & Lt; Item name = "android: displayOptions" & gt; & Lt; / Item & gt; & Lt; / Style & gt;
I'm supporting Android 4.x
Any thoughts?
white_bg attached (it is hard to see because it is white)
It should look like this
& lt; Resources & gt; & Lt ;! - Topics applicable to the application or activity - & gt; & Lt; Style name = "custom actionbeartheme" parent = "@ Android: style / theme. Hollow. Light" & gt; & Lt; Item name = "android: actionBarStyle" & gt; @ Style / myactionbar & lt; / Item & gt; & Lt; Item name = "android: windowContentOverlay" & gt; @ Null & lt; / Item & gt; & Lt; / Style & gt; & Lt ;! - Action style - & gt; & Lt; Style name = "MyActionBar" Original = "@Android: Style / Widget.Hello Light.Actionbar.Solid Andres" & gt; & Lt; Item name = "android: windowActionBarOverlay" & gt; True & lt; / Item & gt; & Lt; Item name = "Android: Background" & gt; @drawable / white_bg & lt; / Item & gt; & Lt; Item name = "android: displayOptions" & gt; & Lt; / Item & gt; & Lt; / Style & gt;
Comments
Post a Comment