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

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

posted @ 2013-08-26 17:17  xxdc  阅读(1340)  评论(0编辑  收藏  举报