LayoutParams 动态设置布局参数

LinearLayout linearLayout = new LinearLayout(context);

LinearLayout.LayoutParams linearLayoutParas = new LinearLayout.LayoutParams(

LinearLayout.LayoutParams.FILL_PARENT,

LinearLayout.LayoutParams.WRAP_CONTENT);

 

 

linearLayout.setLayoutParams(linearLayoutParas);

            

posted @ 2011-09-15 17:19  镇水古月  阅读(452)  评论(0编辑  收藏  举报