4

我正在TextView使用该drawableRight属性旁边画一条线。表中有许多TextViews,我想要的只是列分隔符。继承人的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,这可能看起来像一个列边框。但它不起作用。

这些图像显示了我正在努力实现的目标以及我已经取得的成就。

我只需要指导。谢谢你。

图像中的 Spinner 是我想要制作的 到目前为止我所取得的成就

4

1 回答 1

1

您可以使用android-wheel

于 2011-03-21T17:44:34.047 回答