Fast ways to import drawables in Android Studio?

前端 未结 14 2185
北荒
北荒 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:57

    In your Android Studio, Right click drawable -> New -> Image Asset -> Asset Type: Action Bar and Tab Icons. Image file: image_path, Resource Name: image name -> Next -> Finish

    Done

    This will add 4 different sizes of your image so that it will fit depending the device size

提交回复
热议问题