android - Sherlock Action Bar: Apply style for 3.0 and 2.3 -
i trying add style action bar have in code. want them identical on platforms. issue right buttons, alertdialogs, , action bar (to name few) not same 2.3 4.1.
i want have same theme holo.light
theme , want apply action bar style both 2.3 , 3.0.
here code action bar
<?xml version="1.0" encoding="utf-8"?> <resources xmlns:android="http://schemas.android.com/apk/res/android"> <style name="mytheme" parent="theme.sherlock.light"> <item name="android:windowtitlesize">35dip</item> <item name="actionbarstyle">@style/mytheme.actionbarstyle</item> <item name="android:actionbarstyle">@style/mytheme.actionbarstyle</item> </style> <style name="mytheme.actionbarstyle" parent="widget.sherlock.actionbar"> <item name="titletextstyle">@style/mytheme.actionbar.titletextstyle</item> <item name="android:titletextstyle">@style/mytheme.actionbar.titletextstyle</item> </style> <style name="mytheme.actionbar.titletextstyle" parent="textappearance.sherlock.widget.actionbar.title"> <item name="background">@color/yakorange</item> <item name="android:background">@color/yakorange</item> <item name="android:textcolor">@color/white</item> <item name="android:textsize">12sp</item> <item name="android:height">15dip</item> <item name="android:gravity">center</item> </style> </resources>
the issue since have minsdk @ 10 <item name="android:actionbarstyle">@style/mytheme.actionbarstyle</item>
error. without can't above 3.0 have style.
if can me theme stuff great.
thanks
Comments
Post a Comment