2016-02-17 5 views
14

オプションメニューの点の色を白に変更したいと思います。私はこれのために画像を追加しようとしましたが、うまくいかなかったのです。これを行う方法?オプションメニューの点の色を変更するには?

enter image description here

メニューのxml:

<menu xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:app="http://schemas.android.com/apk/res-auto" 
    xmlns:tools="http://schemas.android.com/tools" 
    tools:context="com.example.siddhi.timetablelayout.Main2Activity"> 

    <item android:id="@+id/action_settings" android:title="@string/action_settings" 
     android:orderInCategory="100" app:showAsAction="never" 
     android:icon="@drawable/ic_more_vert_white_48dp"/> 
</menu> 

はありがとうございます。

答えて

37

あなたはこれを使用して、それを変更することができます。

最も簡単
<!-- android:textColorSecondary is the color of the menu overflow icon (three vertical dots) --> 
<item name="android:textColorSecondary">@color/white</item> 
+0

1 .. .. @ ayz4sci – Sid

+1

どここの – bharv14

+2

置くあなたのstyle.xmlでそれを置くためにありがとうございます。 AppTheme。 – ayz4sci

6

次のスタイル宣言を使用して、使用するイメージを変更できます。

<style name="MyCustomTheme" parent="style/Theme.Holo"> 
<item name="android:actionOverflowButtonStyle">@style/MyCustomTheme.OverFlow</item> 

</style> 

<style name="MyCustomTheme.OverFlow"> 
<item name="android:src">@drawable/my_overflow_image</item> 

</style> 
関連する問題