Android: Use different style for lower OS version -
i working on android app. app use holo theme not available in lower android versions. aware of can set different style in folders values-v11, however, that's customizing in higher versions.
for example, buttons android 3.0+ use default holo , lower version use customized button style. in values/style.xml have:
<style name="apptheme" parent="android:theme.light"> <item name"android:buttonstyle">@style/buttonoldstyle</item> </style>
and in values-v11 , values-v14 have:
<style name="apptheme" parent="android:theme.holo.light"> <item name"android:buttonstyle">@android:style/widget.button</item> </style>
it's working. in ics button still using buttonoldstyle.
you want add:
<style name="apptheme" parent="android:theme.holo.light"> <item name"android:buttonstyle">@android:style/widget.button</item> </style>
to folder values-v15. ics 4.0 - 4.0.2 api 14 , ics 4.0.3 - 4.0.4 api 15. see here.
Comments
Post a Comment