android:layout_gravity="bottom"不起作用问题

布局layout时, 发现设置了android:layout_gravity="bottom"后view并没有底对齐, 查了下, 原来如下:

对于 LinearLayout

当 android:orientation="vertical"  时, 只有水平方向的设置才起作用,垂直方向的设置不起作用。即:left,right,center_horizontal 是生效的。

当 android:orientation="horizontal" 时, 只有垂直方向的设置才起作用,水平方向的设置不起作用。即:top,bottom,center_vertical 是生效的。

 http://blog.csdn.net/cnnumen/article/details/8290927

posted @ 2014-07-13 23:35  daishuguang  阅读(175)  评论(0编辑  收藏  举报