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

后端 未结 11 1757
旧巷少年郎
旧巷少年郎 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:58

    You don't create subfolders of the drawable folder but rather 'sibling' folders next to it under the /res folder for the different screen densities or screen sizes. The /drawable folder (without any dimension) is mostly used for drawables that don't relate to any screen sizes like selectors.

    See this screenshot (use the name drawable-hdpi instead of mipmap-hdpi):

    enter image description here

提交回复
热议问题