定义:
1 private RelativeLayout mrlay;
调高度:
1 mrlay = (RelativeLayout) findViewById(R.id.rlay_1); 2 android.view.ViewGroup.LayoutParams pp =mrlay.getLayoutParams();3 mrlayt.getLayoutParams();4 pp.height =180; 5 mrlay.setLayoutParams(pp);
时间: 2024-11-05 06:24:55