Nvm, I can use Widget.Holo.Light.ActionBar

On Friday, November 28, 2014 10:33:59 AM UTC-8, Denis Ivanov wrote:
>
> This styling guide says that this will work for android 3.0+ (API level 
> 11).
> For Android 3.0 and higher only
>
> When supporting Android 3.0 and higher only, you can define the action 
> bar's background like this:
>
> res/values/themes.xml
>
> <?xml version="1.0" encoding="utf-8"?>
> <resources>
>     <!-- the theme applied to the application or activity -->
>     <style name="CustomActionBarTheme"
>            parent="@android:style/Theme.Holo.Light.DarkActionBar">
>         <item name="android:actionBarStyle">@style/MyActionBar</item>
>     </style>
>
>     <!-- ActionBar styles -->
>     <style name="MyActionBar"
>            parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
>         <item name="android:background">@drawable/actionbar_background</item>
>     </style>
> </resources>
>
>
> https://developer.android.com/training/basics/actionbar/styling.html
>
>
> However I set my min sdk level to 11 and put that code in 
> values-v11/styles.xml and it gives me the error:
>
> @android:style/Widget.Holo.Light.ActionBar.Solid.Inverse requires API 
> level 14 (current min is 11).
>
> Why isn't this working? I want to customize the title bar colors, along 
> with everything else. How do I do it for Android 3.0+ and above?
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to