Does Holo theme work with custom title?

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
+5
source share
3 answers

Window.FEATURE_CUSTOM_TITLE Holo. android:windowActionBar - , , , .

requestWindowFeature(Window.FEATURE_NO_TITLE) , . , .

0

:

<item name="android:windowActionBar">false</item>
+19

mido

<item name="android:windowActionBar">false</item>

@android: style/Theme.Holo( ICS).

, @android: style/Theme.Holo.NoActionBar, @android: style/Theme.Holo.

+4
source

All Articles