I draw a line next to the TextView using the drawableRight property. There is a TextView number in the table, and all I want is a column separator. Here is the TextView code:
<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" />
Code for dialing:
<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>
Therefore, I expected to draw a column next to all TextViews , and it might look like a column border. But it does not work.
Images show what I'm trying to achieve and what I have achieved.
I just need a guide. Thanks.


source share