Can anyone tell me how to add a boarder to a TableLayout in android, like the one below?
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
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.
来源:https://stackoverflow.com/questions/3862136/how-to-style-a-tablelayout-in-android