use holo theme on Android < 4.0

那年仲夏 提交于 2019-11-28 17:08:25

问题


I'm developing an app for Android 2.2 and higher. I use the great ActionBarSherlock (thank you, Jake Wharton !!) to use the action bar on pre-ICS devices.

While the actionbar looks great, all other gui elements have the look of the default theme of the device (in my case HTC Sense 3).

Is there a possibility to style my (>= Android 2.2) app on all android devices with the Holo.Dark.Theme?

I compile my app with Android 4.0.3, the minSDK version is 8.


回答1:


Enjoy HoloEverywhere, that's the whole purpose of the project!

(Edit) new adress: https://github.com/Prototik/HoloEverywhere




回答2:


No. That would require a back port of the complete Holo theme and styling, which Google chose not to do. It would also be a rather ambitious undertaking and I would think it is out of scope of the ActionBarSherlock project, whose focus is on ActionBar compatibility.

The best you can do is cherry pick the resources you most want from the ICS source and create your own custom theme/styles.



来源:https://stackoverflow.com/questions/9311988/use-holo-theme-on-android-4-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!