如何使共享操作图标白色而不是灰色 [英] How to make the Share action icon white instead of gray

查看:82
本文介绍了如何使共享操作图标白色而不是灰色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序有 ShareAction 图标显示如下。结果如何我让白色的而不是灰色。它看起来像它的关闭现在。

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.

我的XML是:

<?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 如下图所示白色图标:

推荐答案

我觉得你的 ic_action_share 是灰色的,那么你必须做出一个白色的图片

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

这篇关于如何使共享操作图标白色而不是灰色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆