I have an application that draws a custom title bar using the following style for the application theme:
<style name="App_Theme" parent="android:Theme">
<item name="android:windowTitleSize">30dip</item>
<item name="android:windowTitleBackgroundStyle">@style/App_TitleBackground</item>
</style>
This does not give me a bare topic. So I set parent = "@android: style / Theme.Holo". This will cause the application to crash with the following error:
E / AndroidRuntime (2048): Caused by: android.util.AndroidRuntimeException: you cannot combine your own headers with other header functions
It is not allowed to use a custom header line using:
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
Or am I missing something?
PS:
The code works great with the parent set in Android: Theme. I am using API level 14
source
share