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

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

猜你喜欢

转载自blog.csdn.net/qq_44919253/article/details/89353334