What's mipmap-anydpi-v26 in res directory in Android Studio 3.0?

后端 未结 3 1921
醉酒成梦
醉酒成梦 2020-12-13 12:51

In Android Studio 3.0, once we create a project, a folder named mipmap-anydpi-v26 is automatically created in the res directory. What actually does

3条回答
  •  没有蜡笔的小新
    2020-12-13 13:39

    Android Studio 3 creates an adaptive icon for your app which is only available in SDK 26 and up. Launcher icons should be put into the mipmap folders.

    If you look at your manifest, you can see that it references ic_launcher

    android:icon="@mipmap/ic_launcher"
    

    If you look in your mipmap folder, you see your normal 5 different launcher icons which will be used for anything lower than SDK 26. For SDK 26 and up, it uses the XML files from the anydpi-v26 folder to make use of adaptive icon.

    
    
        
        
    
    

提交回复
热议问题