Android Studio上 drawable与mipmap的区别
来源:互联网 发布:mac怎么局部截图 编辑:程序博客网 时间:2024/06/08 04:37
两者在使用上没有区别,可以把mipmap当做drawable来用,但mipmap比drawable缩放的性能更好。
所以最适合的方式就是:
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.
0 0
- Android Studio上 drawable与mipmap的区别
- android studio mipmap 和drawable的区别
- android中drawable 与mipmap的区别
- Android Studio Drawable和Mipmap文件夹的区别
- Android studio drawable-hdpi和mipmap-hdpi的区别
- Android studio drawable-hdpi和mipmap-hdpi的区别
- Android中 mipmap与drawable区别
- android mipmap与drawable
- Android mipmap 和 drawable 文件夹的区别
- Android中mipmap 和 drawable 的区别
- Android mipmap和drawable的区别
- Android mipmap 和 drawable 的区别
- android studio mipmap 目录和 drawable 目录有什么区别
- Android Studio(AS)-->drawable与mipmap (官网解释)
- Drawable和Mipmap的区别
- mipmap 和 drawable 的区别
- mipmap 和 drawable 的区别
- mipmap 和 drawable 的区别
- cocoapods安装
- Python pandas insert list into a cell
- iOS开发-UI控件:动态改变UITableView中的Cell高度
- CF 653B. Bear and Compressing
- Hive数据类型-集合类型(Array-Map-Struct)的尝试
- Android Studio上 drawable与mipmap的区别
- 红黑树、插入删除操作
- MFC CListCtrl 刷新数据时闪屏解决方法
- 教您如何在Word的mathtype加载项中修改章节号
- Android集成微信支付功能
- Integrating Apache Spark with PyCharm
- HDU 1285 确定比赛名次 【入门拓扑排序】
- Qt生成随机数的方法
- 基于空间直方图meanshift跟踪