简体   繁体   中英

Creating image asset in Android Studio

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.

在此输入图像描述

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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