代码如下:

LayoutParams params=new LayoutParams (LayoutParams.MatchParent,111);
view.setLayoutParams(params);