效果:
代码:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<stroke
android:width="1dp"
android:color="#114b9c"
android:dashWidth="2dp"
android:dashGap="2dp" />
</shape>
TextView 引入
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginRight="40dp"
android:layout_toRightOf="@+id/tip2"
android:background="@drawable/xx"
android:layerType="software" />