android中android:layout_marginBottom的不起作用问题
2017-07-07 16:50
495 查看
RelativeLayout相对布局中:
1、当设置为android:layout_height="wrap_content"时,最下面的控件layout_marginBottom属性无效,如果其他控件使用layout_above让自己处于最下面的控件之上,那么layout_marginBottom属性有效。
2、当设置为android:layout_height="match_parent"时,或者高度为固定值,那么最下面的控件layout_marginBottom属性才会有效。
1、当设置为android:layout_height="wrap_content"时,最下面的控件layout_marginBottom属性无效,如果其他控件使用layout_above让自己处于最下面的控件之上,那么layout_marginBottom属性有效。
2、当设置为android:layout_height="match_parent"时,或者高度为固定值,那么最下面的控件layout_marginBottom属性才会有效。
相关文章推荐
- android RelativeLayout中android:layout_marginBottom的不起作用问题
- android:layout_gravity="bottom"不起作用问题
- android:layout_gravity="bottom"不起作用问题
- android:layout_gravity="bottom"不起作用问题
- android:layout_gravity="bottom"不起作用问题
- Android的RelativeLayout的view的layout_marginBottom不起作用
- 解决android:layout_marginBottom在RelativeLayout中无效的问题
- Android的RelativeLayout的view的layout_marginBottom不起作用
- android:layout_gravity="bottom"不起作用问题
- android:layout_gravity="bottom"不起作用问题
- 解决android:layout_marginBottom在RelativeLayout中无效的问题
- 分析Button的android:layout_marginBottom参数失效问题
- Android的RelativeLayout的view的layout_marginBottom不起作用
- 【android】LayoutInflater.inflate方法的详解及xml根元素的布局参数不起作用的问题
- 【android】LayoutInflater.inflate方法的详解及xml根元素的布局参数不起作用的问题
- Android Layout XML属性研究--android:layout_marginBottom (转载)
- android2.x中android:layout_marginRight不起作用的解决办法
- 关于 android:layout_gravity="bottom" 或者 android:layout_gravity="right" 在LinearLayout失效问题
- 关于Android中android:marginBottom不起作用以及android:signleLine对文字的影响
- android:layout_marginRight不起作用