1.LinearLayout设置orientation为vertical时,只能使其中控件进行水平居中
2.LinearLayout设置orientation为horizontal时,只能使其中控件进行垂直居中
本文介绍了LinearLayout在不同方向上实现居中的方法:当orientation为vertical时,实现水平居中;当orientation为horizontal时,实现垂直居中。
1.LinearLayout设置orientation为vertical时,只能使其中控件进行水平居中
2.LinearLayout设置orientation为horizontal时,只能使其中控件进行垂直居中

被折叠的 条评论
为什么被折叠?