Reputation: 1230
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
Upvotes: 1
Views: 4651
Reputation: 4921
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
Upvotes: 1
Reputation: 13051
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.
Upvotes: 0