Creating image asset in Android Studio

坚强是说给别人听的谎言 提交于 2020-01-03 17:47:32

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/32919692/creating-image-asset-in-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!