简体   繁体   中英

Android app having pre ICS style

I am developing an Android app and when I run it by default (with no particular styling) it has a pre-ICS look (no holo interface). This is what I have on my style.xml

 <style name="Adif" parent="@android:Theme.Light">

    </style>

How can I make my app look like Holo when available? I still want to be able to provide support to pre-ICS devices.

If you want HOLO style on on all platforms you should use something like lib HoloEverywhere , otherwise you should create values-v14 folder in which in styles.xml you will extend your app theme from Holo themes:
<style name="AppBaseNoActionBar" parent="@android:style/Theme.Holo.Light.DarkActionBar" />
in default values folder you can leave styles extending them from pre-ICS themes.

可用时如何使我的应用看起来像Holo?

<style name="Adif" parent="@android:Theme.DeviceDefault.Light"/>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM