android中android:layout_marginBottom的不起作用问题

RelativeLayout相对布局中:

1、当设置为android:layout_height="wrap_content"时,最下面的控件layout_marginBottom属性无效,如果其他控件使用layout_above让自己处于最下面的控件之上,那么layout_marginBottom属性有效


2、当设置为android:layout_height="match_parent"时,或者高度为固定值,那么最下面的控件layout_marginBottom属性才会有效


版权声明:本文为zxwd2015原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。