Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stretch vertically one row in TableLayout?

I want to stretch vertically one row in TableLayout.

For example:

The TableLayout have four rows (height and width is match_parent)

ROW-1, ROW-2, ROW-4 have same height.

ROW-3 - strechted vertically

like image 846
ihrupin Avatar asked Dec 17 '22 14:12

ihrupin


1 Answers

Make sure your TableLayout has its layout_height set to match_parent and give your row 3 a layout_weight="1.0".

like image 169
Romain Guy Avatar answered Jan 05 '23 18:01

Romain Guy