Fast ways to import drawables in Android Studio?

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

    This became a lot easier since Android Studio 3.4. Simply go to the Resource Manager-tab and click the little add-button add resources to the module. [add button within resource manager[1]

    Then select the drawables you would like to import. If you placed the drawables in folders with the same name like the qualifiers (drawable-mdpi, drawable-hdpi. drawable-xhdpi and so on), the tool will automatically know were to add them.

    The only thing still missing in my opinion is adding the drawables to a certain flavorDimension.

提交回复
热议问题