Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/370.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何使用两个主题?_Java_Android_Xml_Themes_Android Manifest - Fatal编程技术网

Java 如何使用两个主题?

Java 如何使用两个主题?,java,android,xml,themes,android-manifest,Java,Android,Xml,Themes,Android Manifest,我想使用一个自定义主题,我想使用Holo.Light主题。但我总是犯错误: Caused by: android.util.AndroidRuntimeException: You cannot combine custom titles with other title features 目前我正在尝试: styles.xml <resources> <style name="AppTheme" parent="android:style/Theme

我想使用一个自定义主题,我想使用Holo.Light主题。但我总是犯错误:

Caused by: android.util.AndroidRuntimeException: 
           You cannot combine custom titles with other title features
目前我正在尝试:

styles.xml

<resources>
<style name="AppTheme" parent="android:style/Theme.Holo.Light">
    <item name="android:windowTitleSize">55dip</item>
    <item name="android:windowTitleBackgroundStyle">#FFFFFF</item>
</style>
</resources>
在styles.xml中,因为如果我将其更改为:

parent="android:style/Theme"
然后它工作了


有什么建议吗?

不知道问题出在哪里,但已经解决了:

<resources>
<style name="AppTheme" parent="@android:style/Theme.Holo.Light">
    <item name="android:windowActionBar">false</item>
    <item name="android:windowTitleBackgroundStyle">@android:color/transparent</item>
    <item name="android:windowTitleSize">55dip</item>
    <item name="android:windowTitleStyle">#FFFFFF</item>
</style>
</resources>

假的
@android:彩色/透明
55度
#FFFFFF
parent="android:style/Theme"
<resources>
<style name="AppTheme" parent="@android:style/Theme.Holo.Light">
    <item name="android:windowActionBar">false</item>
    <item name="android:windowTitleBackgroundStyle">@android:color/transparent</item>
    <item name="android:windowTitleSize">55dip</item>
    <item name="android:windowTitleStyle">#FFFFFF</item>
</style>
</resources>