:) 我创建了一个绘制:安卓:矢量图标预棒棒糖设备
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:width="24dp"
android:height="24dp"
android:viewportHeight="24.0"
android:viewportWidth="24.0"
tools:targetApi="lollipop">
<path
android:fillColor="@color/Black"
android:pathData="M12,12m-10,0a10,10 0,1 1,20 0a10,10 0,1 1,-20 0"
android:strokeColor="@color/White"
android:strokeWidth="0.5" />
</vector>
但这仅适用的API> = 21级的设备。我想在棒棒糖设备上使用类似的东西。下面是可拉伸的结果:
仅有的圆形图像,但具有固定的宽度和高度..
如果你只是需要一个圆圈,不需要载体。 – njzk2