通过全息式发电机产生的使用主题 [英] Using theme generated by Holo Style Generator
本文介绍了通过全息式发电机产生的使用主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我设法得到这个工作几天就回来,但现在我已经忘了我把,使其工作什么步骤。
I managed to get this done a few days back but now I've forgotten what steps I took to make it work.
我从 http://android-holo-colors.com 生成自定义部件主题
I've generated a custom widget theme from http://android-holo-colors.com
我它复制到我的res文件夹。我需要知道如何在清单和styles.xml文件修改,使其与我的应用程序工作。我已经尝试了很多不同的东西,但主题要么不改变或产生和XML错误。
I've copied it to my res folder. I need to know what to change in the manifest and the styles.xml file to make it work with my app. I've tried a lot of different things but the theme either doesn't change or generates and xml error.
推荐答案
的manifest.xml
<activity
android:name="com.yourapp.app"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:theme="@style/Theme.YourTheme"
...
</activity>
RES /价值/ styles.xml
<style name="YourTheme" parent="android:Theme.Light">
...
</style>
这篇关于通过全息式发电机产生的使用主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文