我正在TextView
使用该drawableRight
属性旁边画一条线。表中有许多TextView
s,我想要的只是列分隔符。继承人的TextView
代码:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="units"
android:drawablePadding="2pt"
android:drawableRight="@drawable/linetable"
android:gravity="center"
android:layout_margin="2pt"
android:padding="2pt" />
线表代码:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<solid android:color="#000000"></solid>
<stroke
android:width="2pt"
android:color="#000000"
android:dashWidth="8pt"
android:dashGap="8pt"/>
</shape>
所以我希望在所有旁边画一个列TextViews
,这可能看起来像一个列边框。但它不起作用。
这些图像显示了我正在努力实现的目标以及我已经取得的成就。
我只需要指导。谢谢你。