Setting a View like an ImageView or TextView within a TableRow spanning N number of columns can be done within the XML layout file using the android:layout_span attribute in the View object, not the TableRow.

Check out the sample xml code below. Since the second row contains 3 columns with 3 different ImageView objects and the first row contains only one ImageView, the android:layout_span is called to span the first row with 3 columns.

Related Posts Plugin for WordPress, Blogger...