Android(安卓)Studio Drawable和Mipmap文件夹的区别
16lz
2021-01-26
楼主使用Android studio开发android 应用,最近发现项目工程目录下有Drawable和Mipmap文件夹,今天在谷歌官网找到了两者的区别
原生图片放在mipmap 里面 drawable主要放一些放一些自定义形状和按钮变色之类的xml。google强烈建议使用mipmap装图片。把图片放到mipmaps可以提高系统渲染图片的速度,提高图片质量,减少GPU压力。
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/
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仿微信朋友圈图片上传选择器布局
- Zipalign——Android(安卓)apk优化工具
- android path对象使用方法与Region.Op的解释
- android软件开发:程序的开机启动
- Android(安卓)图片缓存处理
- Android(安卓)Gallery实现苹果的coverflow效果
- mobAndroid免费验证短信
- Android实现拍照及图片显示效果
- Android手势:单指拖动、双指缩放图片