2016-08-11 6 views
0

アンドロイドでアクションバーのスタイルを変更しようとしています。Androidスタイルスプリットが機能しません。説明が必要です

<?xml version="1.0" encoding="utf-8"?> 
<resources> 
<style name="GoetheTheme" parent="Theme.AppCompat.Light"> 
    <item name="android:actionBarStyle">@style/GoetheActionBar</item> 
</style> 

<style name="GoetheActionBar" parent="Theme.AppCompat.Light.DarkActionBar"> 
    <item name="colorPrimary">@color/base_color_dark</item> 
</style> 

そうそう、私が得たものthatsの。今、アンドロイド・マニフェストのアプリケーション・テーマを作成したもの(GoetheTheme)に入れました。しかし、ActionBarは変更されません。 @GoetheActionBarに設定すると、それが実行されます。なぜGoetheThemeスタイルはGoetheActionBarスタイルを取らないのですか?

私はスタイルシステムを教えていただけますか?私は本当にそれを得ることはありません。事前に

おかげ

答えて

0

申し訳ありませんが、私は非常に悪いです。私は、私は親として別のパラメータを使用する必要があることが分かった^^

私はLightテーマに基づいていないアンドロイドに特有のものを取った。正しい

<style name="GoetheActionBar"parent="@android:style/Theme.WithActionBar"> 
    <item name="colorPrimary">@color/base_color_dark</item> 
</style> 

<style name="GoetheTheme" parent="Theme.AppCompat.Light"> 
    <item name="android:actionBarStyle">@style/GoetheActionBar</item> 
</style> 
関連する問題