如何伸展在TableLayout垂直一列? [英] How to stretch vertically one row in TableLayout?

查看:189
本文介绍了如何伸展在TableLayout垂直一列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要垂直拉伸一行在TableLayout。

I want to stretch vertically one row in TableLayout.

例如:

的TableLayout具有四行(高度和宽度是match_parent)

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

行1,行2,行4 有相同的高度。

行3 - 垂直strechted

ROW-3 - strechted vertically

推荐答案

请确保您的TableLayout有layout_height设置为 match_parent ,给你排3 layout_weight =1.0

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

这篇关于如何伸展在TableLayout垂直一列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆