您的位置:首页 > 移动开发 > Android开发

android 图标和图片位置,drawable or mipmap?

2016-02-01 14:46 169 查看
drawable-<density>/


Directories for drawable resources, other than launcher icons, designed for various densities.

大概意思是,除了应用图标意外,其他的图片都要放在drawable文件夹下

layout/

Directory for files that define your app's user interface like
activity_my.xml
, discussed above, which describes a basic layout for the
MyActivity
class.
menu/

Directory for files that define your app's menu items.
mipmap/


Launcher icons reside in the
mipmap/
folder rather than the
drawable/
folders. This folder contains the
ic_launcher.png
image that appears when you run the default app.

大概意思是:应用图标只放在mipmap文件夹下,而不是drawable

values/


Directory for other XML files that contain a collection of resources, such as string and color definitions.

后来查资料,说放在mipmap文件夹的应用图标,会进行特别优化。但是,感觉这么大手笔,这个文件夹只放一个图标,有点杀鸡用牛刀的感觉呢。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: