【问题】
折腾完:
后,但是还有个问题,按钮是左对齐的,希望弄成中间对齐的。
【解决过程】
1.自己找到了下,好像可以有按钮设置的:
结果没变化。悲催。
结果试了其他各种对齐,也都没用。
感觉貌似是wrap_content使得现在的配置无效的。
7.后看到
中的解释:The children of a TableLayout cannot specify the layout_width attribute.
所以,再去把xml中的android:layout_width去掉。
结果反正是没变化。
刚看全了,实际上不需要改动的:The children of a TableLayout cannot specify the layout_width attribute. Width is always MATCH_PARENT. However, the layout_height attribute can be defined by a child; default value is
8.参考:
给TableLayout添加了:
android:stretchColumns="1"
结果没效果。突然发现是column,而不是row,当然没效果了。。。
9.参考