简体   繁体   English

在Android Studio中创建图像资源

[英]Creating image asset in Android Studio

I am trying to create an image asset in Android studio. 我正在尝试在Android工作室中创建图像资源。 I am facing problem at 2 levels. 我在2个级别面临问题。 First, when I launch Asset Studio and select an image with Asset Type set as 'Launcher Icon', asset is created inside mipmap folder instead of drawable folder. 首先,当我启动Asset Studio并选择资产类型设置为“启动器图标”的图像时,将在mipmap文件夹而不是可绘制文件夹中创建资源。

在此输入图像描述

So I changed Asset type to 'Action Bar and Tab icons'.But it causes image to appear as white blocks. 所以我将资产类型更改为“操作栏和选项卡图标”。但它会导致图像显示为白色块。

在此输入图像描述

Please advise what I am supposed to do. 请告诉我应该做什么。

About the first problem, the behavior is correct.You have to save your ic_launcher in the mipmap folder See android documentation 关于第一个问题,行为是正确的。你必须将你的ic_launcher保存在mipmap文件夹中查看android文档

The 'Action Bar and Tab icons' is for icons only, and icons are defined by Android to use only one color “操作栏和选项卡图标”仅用于图标,Android定义的图标仅使用一种颜色

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM