Java 如何使用两个主题?
我想使用一个自定义主题,我想使用Holo.Light主题。但我总是犯错误: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
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>