如何添加动作条在android的白色图标 [英] How to add actionbar white icon in android

查看:184
本文介绍了如何添加动作条在android的白色图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想补充动作条图标进入Android的工作室,我已经做到这一点:

I'm trying to add actionbar icon into the android studio and i've do this:

转到ImageAssets并设置图标动作条和TabIcons ,然后是指在菜单图标。

Go to ImageAssets and set the icon for Actionbar and TabIcons and then refer that in menu icon.

不过,这是一个有点黑,当应用程序编译,像这样的:

But, it's a little bit black when the app compiled, like this:

输入图像的描述在这里

你可以看到,搜索图标是一个有点黑,这里是codeS:

as you can see, search icon is a little bit black and here is the codes:

HTTP://paste.of$c$c.org/ES89ghmSubeckd95EAJJQb

风格的主题

HTTP://paste.of$c$c.org/p7zsCUUDz2tvhsBsQH4uCp

那么,是什么问题?

我tryied这与复制粘贴图标到绘制(无 ImageAssets 添加),它是白色的,但是,它有没有什么好的resulation或质量。

I've tryied this with copy pasting the icon into drawable(without adding in ImageAssets) and it was white but, it's haven't any good resulation or quality.

我们如何添加一个像白颜色的操作图标的附加动作条图标正确或不正确的方式进入动作条?

How we can add a right or correct way for add actionbar icon like White color action icon into the actionbar?

推荐答案

解决与安卓图标=@可绘制/ abc_ic_search_api_mtrl_alpha 私人资源

,我认为这是一个机器人工作室的错误,当我们加入这个是,这是一个有点黑。

And i think it's an android Studio bug which is when we are adding this, it's a little bit black.

这篇关于如何添加动作条在android的白色图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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