RelativeLayout.LayoutParams margin = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.FILL_PARENT,
RelativeLayout.LayoutParams.WRAP_CONTENT);
margin.setMargins(0, 0, 0, 7);
linearLayoutParent.addView(relativeLayout, margin);
本文介绍如何使用RelativeLayout.LayoutParams设置视图的布局参数,通过设置margin值来调整视图间的间距。
3428

被折叠的 条评论
为什么被折叠?



