混合Android小工具旧&安培;新主题 [英] Mixing Android widget old & new themes
本文介绍了混合Android小工具旧&安培;新主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我开始我的第二个Android应用程序,发现我想大多使用HOLO深色主题的应用程序。
I'm starting my second Android app and find that I would like to mostly use HOLO dark theme for app.
除了EditTexts,我会preFER与一些圆角使用旧姜饼风格的人(考虑在更接近iOS版)。
EXCEPT for the EditTexts, I would prefer to use the old Gingerbread style ones (looking closer to iOS) with some rounded corner.
我有点失落,我怎么能做到这一点。如果任何人都可以掉落一些提示或链接,将是非常美联社preciated
I'm a bit lost as to how I can achieve this. If anyone could drop some hints or links that would be HIGHLY appreciated
推荐答案
在你的主题:
<style name="myTheme" parent="android:Theme.Holo">
<item name="editTextStyle">@style/MyWidget.EditText</item>
</style>
<style name="MyWidget.EditText" parent="android:Widget.EditText">
<item name="android:background">@drawable/edit_text</item>
</style>
现在你可以从 Github上(从框架的姜饼分公司)
Now you can get the referenced drawable from Github(from the Gingerbread branch of the framework)
这篇关于混合Android小工具旧&安培;新主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文