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 ·
1057 阅读 ·
0 评论