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


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 theic_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文件夹的应用图标,会进行特别优化。但是,感觉这么大手笔,这个文件夹只放一个图标,有点杀鸡用牛刀的感觉呢。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值