layout_alignParentBottom 反而撑高布局

作者:vkvi 来源:ITPOW(原创) 日期:2018-5-25

父控件是:

<RelativeLayout
 android:layout_width="match_parent"
 android:layout_height="wrap_content">

子控件 android:layout_alignParentBottom="true" 这会导致父控件尽量撑高,撑到像 match_parent。

相关文章