在Android Studio中创建图像资产 [英] Creating image asset in Android Studio

查看:76
本文介绍了在Android Studio中创建图像资产的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Android Studio中创建图像资产.我面临2个级别的问题. 首先,当我启动Asset Studio并选择资产类型"设置为启动器图标"的图像时,资产是在mipmap文件夹而不是可绘制文件夹中创建的.

I am trying to create an image asset in Android studio. I am facing problem at 2 levels. 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.

因此我将资产"类型更改为操作栏和选项卡图标".但这会导致图像显示为白色块.

So I changed Asset type to 'Action Bar and Tab icons'.But it causes image to appear as white blocks.

请告知我该怎么做.

推荐答案

关于第一个问题,此行为是正确的.您必须将ic_launcher保存在mipmap文件夹中 请参阅android文档

About the first problem, the behavior is correct.You have to save your ic_launcher in the mipmap folder See android documentation

操作栏和选项卡图标"仅用于图标,并且Android定义图标仅使用一种颜色

The 'Action Bar and Tab icons' is for icons only, and icons are defined by Android to use only one color

这篇关于在Android Studio中创建图像资产的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆