2016-02-17 8 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

सबसे आसान एक .. धन्यवाद .. @ 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> 
संबंधित मुद्दे