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
そしてこれは列の境界線のように見えるかもしれません。しかし、それは機能していません。
画像は私が達成しようとしていることと私が達成したことを示しています。
ガイダンスが必要です。ありがとうございました。