Android Studio上 drawable与mipmap的区别
2016-04-01 13:53
405 查看
两者在使用上没有区别,可以把mipmap当做drawable来用,但mipmap比drawable缩放的性能更好。
所以最适合的方式就是:
mipmap存放图片资源,drawable存放selector或者shape之类的xml
扩展阅读:
Android官网解释的原文地址
http://developer.android.com/intl/zh-cn/tools/projects/index.html#ApplicationModules
官方对drawable的解释
官方对mipmap的解释
所以最适合的方式就是:
mipmap存放图片资源,drawable存放selector或者shape之类的xml
扩展阅读:
Android官网解释的原文地址
http://developer.android.com/intl/zh-cn/tools/projects/index.html#ApplicationModules
官方对drawable的解释
drawable/ For bitmap files (PNG, JPEG, or GIF), 9-Patch image files, and XML files that describe Drawable shapes or Drawable objects that contain multiple states (normal, pressed, or focused). See the Drawable resource type.
官方对mipmap的解释
mipmap/ For app launcher icons. The Android system retains the resources in this folder (and density-specific folders such as mipmap-xxxhdpi) regardless of the screen resolution of the device where your app is installed. This behavior allows launcher apps to pick the best resolution icon for your app to display on the home screen. For more information about using the mipmap folders, see Managing Launcher Icons as mipmap Resources.
相关文章推荐
- Android 动画特效 破碎的界面 brokview
- Android源码分析工具及方法
- android asmack 注册 登陆 聊天 多人聊天室 文件传输
- Android 的 supportdesign
- Java Enum and Android Intdef/Stringdef annotation
- Java(Android)开发人员最常犯的10个错误
- Android studio提示包含非ascii的解决方法
- Android 一键清理内存,缓存,文件代码
- Android Service 服务(一)—— Service
- Bitmap优化及内存优化
- Android权限检查
- android点滴之标准SD卡状态变化事件广播接收者的注冊
- 由Android 65K方法数限制引发的思考
- Android-AutoComplete控件与MultiAutoComplete控件搜索匹配
- android TextView设置字过多长长度后面显示省略号失效
- 关于Android开发的40条优化建议
- android graphic(20)—java层OpenGL相关类
- Android跨进程通信
- 高效Android开发者必须知道的4个工具
- android Unable toexecute dex: method ID not in [0, 0xffff]: 65536问题