4
我正在使用drawableRight
屬性在TextView
旁畫一條線。表中有許多TextView
,我想要的只是列分隔符。繼承人的TextView
代碼:在Android中可右鍵繪製。不工作
<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" />
Linetable代碼:
<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
旁邊一列,這可能看起來像一列邊框。但它沒有工作。
這些圖像顯示了我想要達到的目標以及我所取得的成就。
我只是需要指導。謝謝。
謝謝,我發現了,但我遲到了。失去工作:S – JehandadK 2011-03-21 17:53:55