I am trying to change the background of the action bar via XML, but the action bar is no longer shown at all is. / P>
This is the style I am using, declared in styles.xml
:
& lt; Style name = "AppBaseTheme" parent = "@ style / Theme.AppCompat.Light.DarkActionBar" & gt; & Lt; Item name = "actionbars" & gt; @ Style / diary actionbars & lt; / Item & gt; & Lt; Item name = "Android: Actionbarstyle" & gt; @ Style / diary actionbars & lt; / Item & gt; & Lt; / Style & gt; & Lt; Style name = "diary actionbar" original = "@ style / theme.AppCompat.Light.DarkActionBar" & gt; & Lt; Item name = "background" & gt; @ Color / action_bar_bg & lt; / Item & gt; & Lt; Item name = "Android: Background" & gt; @ Color / action_bar_bg & lt; / Item & gt; & Lt; / Style & gt;
I have set both In my style with custom action page background, I have this: And it works just fine. Items in styles are similar to yours Please note that android: background
and background
for compatibility. It only has styles.xml in my app File is i am doing wrong?
& lt; Style name = "Theme. Malacca" Parent = "@ Style / Theme. AppCompat" & gt; & Lt; Style name = "Muller. Actionbars" original = "@ style / widget. AppCompat.ActionBar" & gt;
Malac. The parents of the actionbars are not
themes ...
but widgets ...
Comments
Post a Comment