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

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

    There are two ways of doing it.

    1.Right click on drawable New->Image Asset-> select your highest resolution image rest will be created automatically. once you finish you can see different resolution inside drawable folder

    1. The way you want. on the project Explorer window you see a dropdown as Android. Click it change to project.

    Now yourprojectname->app->src->main->res->

    Aila You can see your drawable folders with hdpi mdpi etc.

提交回复
热议问题