Android mipmap文件夹和drawable文件夹的区别


先看Google官方:

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.

可以看出,mipmap只是放ic_launcher.png而已。所以其它的资源图片我们还是应该放在drawable目录下。

你可能感兴趣的:(Android mipmap文件夹和drawable文件夹的区别)