这是我下面的代码,它在 textview 的中心显示虚线我想在 textview 下方显示,如下所示:
如何将其更改为显示在 textview 虚线下方
<?xml version="1.0" encoding="utf-8"?>
<TableRow xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/apprentTemp"
android:textColor="#000000"
android:background="@drawable/dotted"
android:paddingLeft="10dp"
android:gravity="left"/>
<TextView
android:id="@+id/localTime"
android:textColor="#000000"
android:background="@drawable/dotted"
android:gravity="center"/>
</TableRow>
<---- dashed.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<stroke
android:color="#000000"
android:dashWidth="5px"
android:dashGap="5px" />
</shape>