2017-09-15 25 views
0

私のアプリケーションのデフォルトの戻るボタンの色は白です。バックボタンの色を黒に変更する必要があります。私はナビゲーションバーの戻るボタンを変更するために多くのポストを試していますが、運はありません。あなたは何か考えてみてください。ここにテーマデザインがあります。ナビゲーションバーの変更ボタンの色は、xamarin androidで

style.axml:

<resources> 
    <style name="MyTheme" parent="MyTheme.Base"> 
    </style> 
    <style name="Theme.Splash" parent="@android:style/Theme.NoTitleBar.Fullscreen">   
    <item name="android:windowBackground">@drawable/Splash</item> 
    <item name="android:windowNoTitle">true</item> 
    </style> 
    <style name="MyTheme.Base" parent="Theme.AppCompat.Light.NoActionBar"> 
    <item name="colorPrimary">@color/primary</item> 
    <item name="colorPrimaryDark">@color/primaryDark</item> 
    <item name="colorAccent">@color/accent</item> 
    <item name="android:windowBackground">@color/window_background</item> 
    </style> 
</resources> 

のstyles.xml:

<resources> 
    <style name="MainTheme" parent="MainTheme.Base"> 
    </style>  
    <style name="MainTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">  
    <item name="windowNoTitle">true</item> 
    <item name="windowActionBar">false</item>  
    <item name="colorPrimary">#fcce47</item>  
    <item name="colorPrimaryDark">#000000</item>  
    <item name="colorAccent">#000000</item>  
    <item name="windowActionModeOverlay">true</item> 
    <item name="android:textCursorDrawable">@null</item> 
    <item name="android:datePickerDialogTheme">@style/AppCompatDialogStyle</item> 
    </style> 

    <style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog"> 
    <item name="colorAccent">#FF4081</item> 
    </style> 
</resources> 
+0

ナビゲーションバーテキストカラープロパティで変更することができます。テーマに追加する必要はありません。 –

+0

こんにちは、私はナビゲーションバーのボタンの色をテキストの色ではなく戻したいと思います。 – Deepak

+0

ナビゲーションの戻るボタンとタイトルの色はBarTextColorプロパティで変更されます。戻るボタンとタイトルは同じ色です。 –

答えて

0

私はあなたがmytheme.baseの内側線の下に書かなければならないのstyles.xml

でコードの下のライトを持ってい

<item name="drawerArrowStyle">@DrawerArrowStyle</item> 

上記のスタイルタグの外側にコードを書く:

<style name = "DrawerArrowStyle" parent="Widget.AppCompat.DrawerArrowToggle"> 
<item name="color">@color/BackButtonColor</item> 
</style> 
関連する問題