问题
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