Skip to content Skip to sidebar Skip to footer

How To Draw A Vertical Line Between The Columns Of A Multiple Column List View In Android?

Right now i am working with multiple column list view in android. My need is to draw a vertical line between the columns of a multiple column list view in android.Which means i am

Solution 1:

<View
    android:id="@+id/view1"
    android:layout_width="fill_parent"
    android:layout_height="2dip"
    android:layout_below="@+id/te1"
    android:background="#F0FFFF" />

And check this links http://thiranjith.com/2010/02/19/how-to-display-border-lines-with-tablelayouts/

http://mobileorchard.com/android-app-development-%E2%80%93-layouts-part-two-table-and-absolute-layouts/

Solution 2:

I think to show data in a row, you take a textview .

So put View between every textview.

<Viewandroid:layout_width="5dp"android:layout_height="fill_parent"android:background="#ababab" />

So it display lie this.

Dev | 000000000000000000 | Chennai
PSl | 000000000000000000 | Mumbai

Post a Comment for "How To Draw A Vertical Line Between The Columns Of A Multiple Column List View In Android?"