首页 > 编程知识 正文

mipmap使用,android里mipmap怎么添加标

时间:2023-05-03 19:25:56 阅读:224460 作者:1681

Why cant we just place the app icons in the res/drawable folders too?

哦,你可以.谷歌不推荐它,就是这样.

从my book的6.5版引用自己:

While

drawable resources might be removed when packaging an APK, such as for the

Gradle for Android split system for making density-specific editions of an app,

mipmap resources are left alone, apparently

这是因为发射器图标可以从比用于所有其他可绘制的常规设备密度更高密度的桶中拉出.将它们放在res / mipmap – * /目录中意味着我们不会无意中摆脱它们作为优化APK大小的一部分.

(为什么他们没有以更好的方式处理这个,我不知道)

how do I create other drawable assets and place them in the drawable folders with the Android Studio Image Asset wizard? (Accessed by right clicking in the project, selecting New > Image Asset)

图像资源向导仅将启动器图标放在res / mipmap – * /目录中.如果您选择其他图标类型,它们将进入res / drawable – * /.当然,Image Asset向导本身是可选的.

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。