How to make the Share action icon white instead of gray

↘锁芯ラ 提交于 2020-01-14 19:43:11

问题


My app has the ShareAction icon as displayed below.
How I make it white instead of gray. It looks like it's disabled right now.

My XML is:

<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >

   <item android:id="@+id/menu_item_share"
        android:showAsAction="ifRoom"
        android:icon="@drawable/ic_action_share"
        android:title="Share"
        android:actionProviderClass="android.widget.ShareActionProvider" />

</menu>

ic_action_share is a white icon as shown below:


回答1:


I think your ic_action_share IS gray, well you have to make a white image



来源:https://stackoverflow.com/questions/20601329/how-to-make-the-share-action-icon-white-instead-of-gray

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!