本文介绍了在TableLayout Android的弹力柱均匀的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我显示在我的Android应用程序值表,并希望列均匀分布的,而不是根据内容大小规模而言,。
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的弹力柱均匀的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!