如何添加动作条在android的白色图标图标、白色、动作、android

2023-09-12 03:23:34 作者:梦的方向叫做闯

我想补充动作条图标进入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.