纹理映射VS绘制文件夹纹理、文件夹、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...

我的工作与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.

据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"
阅读全文

相关推荐

最新文章