Fast ways to import drawables in Android Studio?

前端 未结 14 2190
北荒
北荒 2020-11-28 07:10

At some point in an Android project you will need to import some drawables - be it toolbar icons, images, UI features - in res/drawable directory. Most of the t

14条回答
  •  失恋的感觉
    2020-11-28 07:59

    I usually do it in a very simple way: I use this tool to generate my images directly in the right folders names: you just have to open the tool and drag on it the bigger image (EG: the one you want to use for xhdpi folder or xxhdpi folder): the tool will create in the original image's folder all the other folders (mdpi,ldpi,hdpi etc) containing the image properly scaled. Once you have this folders you just have to paste them in res folder, DONE!

提交回复
热议问题