Android studio mipmap and 9-patch drawables

二次信任 提交于 2019-12-06 04:34:06

You must add all your 9-patch images to drawable folder and use it by referencing @drawable/your_image_name.

For more information refer Android Developers Blog

Compilation and IDE resolution are 2 different things. Android studio can find your mipmap image but the android sdk does not support naming convention with 2 dots when you try to compile. Just rename your image to greenbuttonbg.png.

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