楼主使用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.

更多相关文章

  1. Android仿微信朋友圈图片上传选择器布局
  2. Zipalign——Android(安卓)apk优化工具
  3. android path对象使用方法与Region.Op的解释
  4. android软件开发:程序的开机启动
  5. Android(安卓)图片缓存处理
  6. Android(安卓)Gallery实现苹果的coverflow效果
  7. mobAndroid免费验证短信
  8. Android实现拍照及图片显示效果
  9. Android手势:单指拖动、双指缩放图片

随机推荐

  1. java学习笔记1
  2. 在使用visualvm进行分析时,如何避免“Prof
  3. Spring SpEL系列二 @Value,xml, Java代码
  4. java必备——网络编程初解
  5. 蓝桥杯--第七届决赛:路径之谜
  6. 异步执行多个任务并在JavaScript函数中返
  7. Java-控制台传递参数
  8. 怎样让自己对编程感兴趣?
  9. 数据结构-java与c实现带头结点的单链表
  10. 本地方法中printf如何传给java--java系统