RelativeLayout中使用layout_marginBottom失效
1. 失效的原因
当在外层layout属性设置为android:layout_height="wrap_content"时,最下面的控件layout_marginBottom属性无效
2. 解决办法
2.1. 设置属性为android:layout_height="match_parent"或固定值
2.2. 在最外层的RelativeLayout中设置android:paddingBottom=“xxdp”
2.3. 在RelativeLayout下面再加一个0dp的view
如果其他控件使用layo
原创
2020-11-29 15:32:19 ·
1084 阅读 ·
0 评论