android studio mipmap下创建不同分辨率的文件
作者:
木木公白 | 来源:发表于
2016-05-10 09:18 被阅读4240次
问题:原来eclipse里面都设置好了按不同分辨率设置的drawable

Paste_Image.png
但是在android studio中只有一个drawable,怎么办呢?

Paste_Image.png
解决:其实很简单,把不同分辨率的图片复制到mipmap文件夹下选择分辨率即可
操作:我现在有两张不同分辨率的图片,文件名相同
40x40

Paste_Image.png
80x80

Paste_Image.png
1.先复制40x40的到mipmap,选择要存放的地方

Paste_Image.png
2.在复制80x80的到mipmap,选择要存放的地方

Paste_Image.png
3. 结果

Paste_Image.png
这样就ok了
另外一种方法
首先切换显示的目录到project
切换前

Paste_Image.png
切换后

Paste_Image.png
复制图片至相应的分辨率文件夹即可
本文标题:android studio mipmap下创建不同分辨率的文件
本文链接:https://www.haomeiwen.com/subject/vnzerttx.html
网友评论