1
2
如果希望编辑文本填充剩余空间,则应设置其布局宽度=“0dp”和布局重量=“1”。请参阅: https://developer.android.com/guide/topics/ui/layout/linear.html#Weight
编辑:如果你想让编辑文本的开头对齐,你应该对所有的文本视图应用相同的权重,对所有的编辑文本应用相同的权值。原始答案只会填满剩余的空间,而不会保持文本的开头对齐。 |
rawsly · Android以编程方式创建表 6 年前 |
Andy · 如何显示此自定义视图? 7 年前 |
Rk R Bairi · 对齐并调整文本视图和编辑行中文本的宽度 7 年前 |
Al Lelopath · 如何降低行高。(表格布局>表格行) 8 年前 |
wbk727 · 表行中的多行文本视图未正确换行 9 年前 |