在TableLayout Android的弹力柱均匀 [英] Android Stretch columns evenly in a TableLayout

查看:93
本文介绍了在TableLayout Android的弹力柱均匀的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我显示在我的Andr​​oid应用程序值表,并希望列均匀分布的,而不是根据内容大小规模而言,。

I am displaying a table of values in my android application, and would like the columns to be distributed evenly in terms of size , instead of sizing according to content.

被玩弄stretchColumns但不能设法找出正确的组合,任何想法?

Been playing around with stretchColumns but couldn't manage to figure out the right combination, Any Ideas?

推荐答案

我有同样的问题 - 我总是只输入了一个数安卓stretchColumns ,但你必须进入应拉长的所有列。所以,如果你有三列,你必须写:

I had the same problem - I always only entered one number in android:stretchColumns, but you have to enter all columns that should be stretched. So if you have three columns, you have to write:

android:stretchColumns="0,1,2"

或写:

android:stretchColumns="*"

然后,所有列将具有相同的尺寸。在此提醒您,安卓stretchColumns TableLayout 元素的属性

这篇关于在TableLayout Android的弹力柱均匀的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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