views:

54

answers:

2

Can anyone tell me how to add a boarder to a TableLayout in android, like the one below?

http://developer.android.com/images/table_layout.png

A: 

Hi Tim,

TableLayout containers do not display border lines for their rows, columns, or cells. You cannot add border to table layout cells which is mentioned in the TableLayout Javadoc.

Gopinath
A: 

table layout don't display the use border use view control

<View android:id="@+id/View01" android:layout_height="1dip"
    android:layout_width="fill_parent" android:background="@color/blue_text"></View>

for vertical line give width

ud_an