LinearLayout view = (LinearLayout) findViewById(R.id.layout);
LayoutParams params = view.getLayoutParams();//得到布局参数
params.height = 100;//得到高
params.width = 50;//得到宽
view.invalidate();
LinearLayout view = (LinearLayout) findViewById(R.id.layout);
LayoutParams params = view.getLayoutParams();//得到布局参数
params.height = 100;//得到高
params.width = 50;//得到宽
view.invalidate();