2014-12-16 2 views
3

사용자 정의 테마를 사용하고 싶습니다. 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> 

의 AndroidManifest.xml :

<application 
    android:allowBackup="true" 
    android:icon="@drawable/ic_launcher" 
    android:theme="@style/AppTheme"> 

    <activity 
     android:name=".Main" 
     android:label="@string/app_name"> 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
    </application> 

그것은 문제가있다 그러나 나는 항상 오류가 :

styles.xml에서

, 나는 그것을 변경하는 경우 때문에 :

parent="android:style/Theme" 

후 작동 ...

어떤 조언을? 문제가 어디에

답변

0

모르겠지만, this는 해결 :

<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> 
관련 문제