Cannot combine custom titles with other titles features error
<p>I have a tabhost and there is an activity inside. I want this activity to have customized title bar so I used the following code. But it gives the error Cannot combine custom titles with other titles features. I look at the file and see only one theme applied to it, I am not sure why this is happening... Any idea? I am also using dialogtheme for other activities in my tabhost, but I think that is fine because I am applying my custom theme only to one Activity(which is named startActivity).</p>

<p>Manifest:</p>

<pre><code>&lt;application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" &gt;
        &lt;activity
            android:name=".MainTabActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"
            android:label="@string/app_name" &gt;
            &lt;intent-filter&gt;
                &lt;action android:name="android.intent.action.MAIN" /&gt;

                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
        &lt;activity
            android:name=".StartActivity"
            android:label="@string/app_name"
            android:theme="@style/CustomTheme"   //this is the Custom title bar theme for this activity
            android:screenOrientation="portrait" &gt;
    &lt;/activity&gt;
</code></pre>

<p>Activity onCreate():</p>

<pre><code>    requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);  //error happned here
    getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.window_title);
    super.onCreate(savedInstanceState);
    Log.i(TAG, "onCreate()");
    setContentView(R.layout.startactivity);
</code></pre>

<p>window_title.xml in layout folder:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal"
    android:layout_width="fill_parent"
    android:layout_height="35dip"
    android:gravity="center_vertical"
    android:paddingLeft="5dip"
    android:background="#323331"&gt;

    &lt;ImageView
        android:id="@+id/header"
        android:src="@drawable/ic_launcher"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>Finally, the @style:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;resources&gt;
    &lt;style name="CustomWindowTitleBackground"&gt;
        &lt;item name="android:background"&gt;#323331&lt;/item&gt;
    &lt;/style&gt;

    &lt;style name="CustomTheme" parent="android:Theme"&gt;
        &lt;item name="android:windowTitleSize"&gt;35dip&lt;/item&gt;
        &lt;item name="android:windowTitleBackgroundStyle"&gt;@style/CustomWindowTitleBackground&lt;/item&gt;
    &lt;/style&gt;
&lt;/resources&gt;
</code></pre>
