<!-- snipped -->
<TableLayout android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:stretchColumns="*">
<TableRow>
<TextView android:id="@+id/info"
android:layout_span="3"
android:text="@string/info"
android:layout_gravity="center_horizontal" />
</TableRow>
<TableRow>
<Button android:id="@+id/button_add" android:text="+" />
<TextView android:text="@string/label" />
<TextView android:id="@+id/amount" />
</TableRow>
<!-- snipped -->
</TableLayout>
<!-- snipped -->
TableLayout supports column span on Android Development.
it likes html, but not intuitive
ReplyDeleteHow to this (android:layout_span="3") through code...
ReplyDeleteI am unable to get syntax to set the span dynamically through code.
Hello,
ReplyDeleteHow about setting the column span of a single cell in the . java and not here in .xml? Do you know how?
You're help is really much appreciated. Thank you very much.
how to do this programatically???
ReplyDelete