LinearLayout.LayoutParams params=new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT);view.setLayoutParams(params);
应该在设置里面 我是来拿经验的 接哈家啊