mipmap 目录和drawable 目录有什么区别
来源:互联网 发布:华为软件下载官方网站 编辑:程序博客网 时间:2024/05/17 21:40
在Android Studio中,当我们新建一个项目的时候,可以看到只有一个drawable目录,其他都换成了mipmap目录,那么这两个目录到底有什么区别呢?
看看官方的介绍:
首先,使用上没有任何区别,把它当drawable使用就可以了。
但是用mipmap系统会在缩放上提供一定的性能优化。
实例:
Nexus 6 有 493 ppi,它刚好在 xxhdpi和xxxhdpi之间,所以显示的时候需要对xxxhdpi的资源进行缩小,如果你用了mipmap-xxxhdpi,那么这里会对sclae有一个优化,性能更好,占用内存更少。所以现在官方推荐使用mipmap:
0 0
- mipmap 目录和drawable 目录有什么区别
- mipmap 目录和drawable 目录有什么区别
- mipmap 目录和drawable 目录有什么区别
- android studio mipmap 目录和 drawable 目录有什么区别
- mipmap 目录和drawable 目录有什么区别
- mipmap 目录和drawable 目录有什么区别
- AndroidStudio中mipmap目录和drawable目录有什么区别
- Android Studio中mipmap目录和drawable目录有什么区别
- mipmap目录和drawable目录的区别
- android mipmap目录和drawable目录的区别
- mipmap 和 drawable 有什么不同?
- Android中的图片(drawable目录;drawable和mipmap的区别)
- Android-Studio之mipmap目录和drawable目录详解
- mipmap和drawable区别
- Android项目中的mipmap文件夹是什么?怎么用?和drawable文件夹有什么区别?
- 网络目录和搜索引擎有什么区别?
- Drawable和Mipmap的区别
- mipmap 和 drawable 的区别
- 基于VirtualBox安装CoreOS
- 主席树+CDQ分治+整体二分
- Debug和Release版本的区别
- wdatepicker,自定义时间限制
- 关于c语言结构体内存对齐有感
- mipmap 目录和drawable 目录有什么区别
- MyBatis3逆向工程
- C++类中成员变量和成员指针变量小结
- Codeforces Round #329 (Div. 2) 593D. Happy Tree Party(树链剖分)
- gvim一键编译运行python
- 程序员技术练级攻略
- MongoDB副本集(Linux)
- buses_init()
- 他妈的 Python(1):怎么发起一个同步的 HTTP 请求