android中如何在代码中直接设置View的layout_weight属性

tvColu2.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT, 1.0f));

你可能感兴趣的:(android中如何在代码中直接设置View的layout_weight属性)