什么是Vector Drawable?它与PNG有什么不同?是否可以将PNG转换为Android中的矢量Drawable?Vector Drawable VS PNG
以下是我在Studio中创建的一个矢量Drawable。
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportHeight="24.0"
android:viewportWidth="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M22,16V4c0,-1.1 -0.9,-2 -2,-2H8c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2zm-11,-4l2.03,2.71L16,11l4,5H8l3,-4zM2,6v14c0,1.1 0.9,2 2,2h14v-2H4V6H2z" /> </vector>
这是什么路径数据?我怎样才能获得PNG?
http://developer.android.com/intl/es/reference/android/graphics/drawable/VectorDrawable.html查看这一个 – Abhishek