是否有一种方法可以使大写的圆点/圆点如上图所示?
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<stroke
android:width="2dp"
android:color="@color/grey"
android:dashWidth="3dp"
android:dashGap="3dp" />
</shape>
[伙计们,我知道如何制作虚线,我在问如何制作“四舍五入”的破折号!!看看来自Adobe XD的这张照片,就知道我的意思..!
为此,您必须制作drawable/dotted.xml:
文件并按如下所示将此形状添加到其中
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<stroke
android:color="@color/grey"
android:dashWidth="10px"
android:dashGap="10px"
android:width="1dp" />
</shape>
并将其添加到ImageView的背景中,如下所示
<ImageView
android:layout_width="match_parent"
android:layout_height="5dp"
android:src="@drawable/dotted"
android:layerType="software" />