What is the best way to create drawables for different dpi

前端 未结 8 1269
难免孤独
难免孤独 2020-12-11 05:13

Do you create the MDPI drawable first and just scale it accordinly to the .075/1.00/1.50/2 ratio by pixels in photoshop or do you recreate each individual drawable?

8条回答
  •  旧时难觅i
    2020-12-11 05:59

    As of Android L there is a VectorDrawable which is like the SHAPE from SVG but in Android's XML style

    see Android documentation:

    https://developer.android.com/training/material/drawables.html#VectorDrawables

提交回复
热议问题