Android Studio: Drawable Folder: How to put Images for Multiple dpi?

后端 未结 11 1815
旧巷少年郎
旧巷少年郎 2020-11-27 11:21

Hi as per android documentation the drawable folder needs to have multiple sub-directories for images of different dpis. However in Android Studio creating any sub directory

11条回答
  •  清歌不尽
    2020-11-27 11:46

    In android studio you may see the following folder drawable xhdpi, drawable-hdpi, drawable-mdpi and more... You can put images of different dpi in these folder accordingly and android will take care which images should be draw according to the screen density of device.

    NOTE: You have to put the images with the same name.

提交回复
热议问题