android中如何在代码中直接设置View的layout_weight属性
tvColu2.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT, 1.0f)); 就这一行就OK!
·
tvColu2.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT, 1.0f));
就这一行就OK!
更多推荐
所有评论(0)