简体   繁体   English

Android Image Asset Studio:图标显示图像的白色为灰色

[英]Android Image Asset Studio: icon showing white color of an image as greyish

I wanted to create an icon for A+ (with + superscript). 我想为A +创建图标(带有+上标)。

I tried to create using image asset studio. 我尝试使用图像资产工作室进行创建。 But problem is i am not able to add superscript 但问题是我无法添加上标

So i have create a A+ image in gimp. 所以我在gimp中创建了一个A +图像。

Then i created a app bar icon using android asset stuido. 然后,我使用Android资产stuido创建了一个应用栏图标。 I got the following output. 我得到以下输出。 I am expecting the A+ to be pure white but it shows slightly greyish. 我期望A +为纯白色,但显示为略带灰色。 I am also using search icon which shows pure white and text converted to icon which also shows pure white. 我还使用显示纯白色的搜索图标,并将文本转换为也显示纯白色的图标。 So how to make to pure white 那么如何使纯白

the below is the image: 下面是图片:

在此处输入图片说明

My gimp image which i created is: 我创建的gimp图片是:

在此处输入图片说明

Try adding an iconTint attribute to the menu item in your menu.xml file: 尝试将iconTint属性添加到menu.xml文件中的菜单项:

        app:iconTint="@android:color/white"

If the icon still looks gray to you, it may have been imported with the HOLO_LIGHT theme (which seems to use lower opacity). 如果您仍然看到该图标灰色,则可能是使用HOLO_LIGHT主题导入的(似乎使用了较低的不透明度)。 Try importing the image asset again, making sure to select HOLO_DARK as the theme on the "Configure Image Asset" screen. 尝试再次导入图像资产,确保在“配置图像资产”屏幕上选择HOLO_DARK作为主题。 This should give you a more opaque white icon. 这应该给您一个更不透明的白色图标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 android studio 中更改图像资产中的通知图标颜色 - changing notification icon color in image asset in android studio Android Studio图像资产启动器图标透明背景颜色 - Android Studio Image Asset Launcher Icon Transparent Background Color Android Studio 图像资产启动器图标背景颜色 - Android Studio Image Asset Launcher Icon Background Color 为什么使用 Android Asset Studio 生成的通知图标图像是全白的? - why the image for notification icon generated using Android Asset Studio is completely white? android studio 图像资产中的圆形启动器图标 - Round launcher icon in android studio image asset 为什么 Android Image Asset Studio 生成的通知图标颜色全白? - Why is the color for the notification icons generated by Android Image Asset Studio completely white? 在 Android Studio 3.0.1 中使用没有背景颜色或 xml 的图像资源创建启动器图标 - Create Launcher icon using Image Asset without background color or xml in Android Studio 3.0.1 在Android Image Asset Studio中删除灰色和白色方格背景 - Removing Grey and White Chequered background in Android Image Asset Studio ImageView 显示白色图像 Android Studio Kotlin - ImageView Showing White Image Android Studio Kotlin 应用程序图标图像资产 Android Studio 的尺寸应该是多少? - What should be the dimension of app icon image asset Android Studio?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM