android - ActionBarCompat doesn't show style -


i've created following xml files applying style actionbar, doens't work

<!-- application theme. --> <style name="apptheme" parent="@style/theme.appcompat">     <item name="actionbarstyle">@style/myactionbar</item> </style>  <style name="myactionbar" parent="@style/widget.appcompat.actionbar">     <item name="android:background">@color/actionbar_color</item>     <item name="background">@color/actionbar_color</item>     <!--<item name="actionmodebackground">@color/actionbar_color</item>-->     <!-- support library compatibility -->     <!-- <item name="background">@drawable/actionbar_background</item> --> </style> 

and manifest

<application     android:allowbackup="true"     android:icon="@drawable/ic_launcher"     android:label="@string/app_name"      android:theme="@style/apptheme"      > 

where problem, action bar shown black blue line below

try change to:

<style name="apptheme" parent="@style/theme.appcompat">     <item name="actionbarstyle">@style/myactionbar</item>     <item name="android:actionbarstyle">@style/myactionbar</item> </style> 

and: not sure if @color allowed in line <item name="background">@color...


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -