操作栏的Android图标生成器和通知无法正常工作(灰色形状)

Mul*_*ard 20 icons android android-assets android-icons android-studio

我找到了这个Asset Studio来生成图标.它适用于启动器图标,但对于操作栏或通知图标,它不起作用.我输入了我的png文件并想生成图标,但Asset Studio只生成灰色圆圈.是否有其他工具可以生成操作栏和通知图标?

在此输入图像描述

rom*_*4ek 30

您可以使用工具在Asset Studio中创建通用图标:https://romannurik.github.io/AndroidAssetStudio/icons-generic.html.要让它看起来像ActionBar Icon,您应该进行下一步操作:

  1. 选择图片
  2. 图像大小应保持在24dip
  3. 将填充更改为4dip
  4. 将前景色拇指移动到0%
  5. 而已!立即下载.zip.

图标的大小与使用ActionBar图标生成器获得它们的大小相同.

它是如何找我的: 图标生成器截图


Joh*_*ldo 9

Use this instead https://romannurik.github.io/AndroidAssetStudio/icons-generic.html

Here demonstrating how to show the image:

  1. upload your image
  2. set the foreground color to 0, just like below

感谢/sf/users/225782091/ 在此输入图像描述