Inherit from @android:style/Theme.Holo.Light in a minSdkVersion="4" application
I currently have an Android application targeting version 11 of the SDK with a minimum version of 4. I would like to apply the Light version of the Holo theme if the app is running on Honeycomb. Following the instructions here I have tried adding the following to res/values-v11/themes.xml but my application will not compile because @android:style/Theme.Holo.Light does not exist in SDK 4
<resour开发者_Go百科ces>
<style name="MyTheme" parent="@android:style/Theme.Holo.Light">
</style>
</resources>
Is is possible to get a reference to that theme without having to build separate 1.6-2.x and 3.x versions of my application?
As EboMike pointed out in the comments this was a problem with setting the build target to the Minimum SDK version instead of the Target SDK version.
精彩评论