Reputation: 4307
I'm trying to implement the holo theme for my app, so far so good... but the app didn't work on older devices pre 3.0
so I made a custom theme, in values dir and values-v11 dir to make android switch to the correct one on runtime...
I also set the target sdk level to 7 to support android 2.1
now the holo theme isn't recognized
Am I aiming for something impossible?
What I want is pre 3.0 devices to use the default android theme and everything that supports holo to use holo theme.
Upvotes: 0
Views: 409
Reputation: 100438
In values/styles.xml:
<style name="AppTheme" parent="@android:style/Theme.Light">
values-v11/styles.xml:
<style name="AppTheme" parent="@android:style/Theme.Holo.Light" />
values-v14/styles.xml:
<style name="AppTheme" parent="@android:style/Theme.DeviceDefault.Light" />
Upvotes: 1