纹理映射VS绘制文件夹 [英] mipmap vs drawable folders

查看:125
本文介绍了纹理映射VS绘制文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作与Android工作室1.1 preVIEW 1

I'm working with android studio 1.1 Preview 1

和我注意到,当我创建一个新项目,我得到下个等级:

And I noticed that when I create a new project I'm getting next hierarchy:

有不同势DPI的纹理映射文件夹,没有更多的不同势的DPI可绘制文件夹。

mipmap folders for diffrent DPIs, No more diffrent DPIs drawable folders.

我应该把在多重映像文件夹中所有的资源,或者只是应用程序图标?

Should I put all my resources in the mipmap folders, or just the app icon?

推荐答案

多重映像文件夹放置你的应用程序图标而已。你使用任何其他的资产绘制应放置在相关的绘制文件夹和以前一样。

The mipmap folders are for placing your app icons in only. Any other drawable assets you use should be placed in the relevant drawable folders as before.

据<一href="http://android-developers.blogspot.co.uk/2014/10/getting-your-apps-ready-for-nexus-6-and.html">this谷歌的博文:

这是最好的做法是把你的应用程序图标中的纹理映射 - ,因为它们均采用分辨率从器件的电流密度不同的文件夹(而不是drawable-文件夹)

It’s best practice to place your app icons in mipmap- folders (not the drawable- folders) because they are used at resolutions different from the device’s current density.

当引用纹理映射 - 文件夹确保您使用以下引用:

When referencing the mipmap- folders ensure you are using the following reference:

android:icon="@mipmap/ic_launcher"

这篇关于纹理映射VS绘制文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆