如何在Android Studio中更改图标颜色

问题描述:

我从material.io下载了一些图标,但它们仅提供黑色图标。我看了一个YouTube视频,他们用它们来选择颜色。无论如何,我正在尝试将图标的颜色更改为白色。我没有运气。我试图在android studio中更改填充颜色,但无法正常工作。任何帮助将不胜感激,例如确切的代码和向其添加代码的文件。谢谢。

I downloaded some icons from material.io but they only offer the icons in black. I saw a youtube video where they use to allow you to choose the color. Anyway, I am trying to change the colors of the icons to white. I am not having any luck. I tried to change the fill color in android studio but it doesn't work. Any assistance would be appreciated such as exact code and files to add the code to. Thanks.

您可以直接在Android Studio中下载这些图像。

You can directly download these images in Android Studio.

res>右键单击>新建>图像资产,然后选择

res > right click > New > Image Asset and select


  • 图标类型:操作栏和标签图标

  • 资产类型:剪贴画

  • 主题:自定义

您可以选择您想要的任何剪贴画,选择颜色,填充等...

And you can select any clip art that you want, select the color, padding, etc ...