android - Holo Theme and API 8 -
i have app must supported api 8+. have app holo theme for(11+). know won't supported min sdk 8. solution create 2 separate apps 1 8-11 , 1 11+. there better way this? can reduce double maintenance.
there's no need create 2 separate apps. need create 2 definitions of theme app:
styles.xml in /res/values-v11 (will used on api 11+)
<resources> <style name="app_theme" parent="android:theme.holo.light"/> </resources>
styles.xml in /res/values
<resources> <style name="app_theme" parent="android:theme.light"/> </resources>
and then, apply application in androidmanifest.xml:
<application ... android:theme="@style/app_theme" > ... </application>
this setup uses resource qualifiers. can read more them here.
Comments
Post a Comment