定义:
private RelativeLayout mrlay;
调高度:
mrlay = (RelativeLayout) findViewById(R.id.rlay_1);
android.view.ViewGroup.LayoutParams pp =mrlay.getLayoutParams();
//mrlayt.getLayoutParams();
pp.height =180;
mrlay.setLayoutParams(pp);
2021-07-13 16:36:53
定义:
private RelativeLayout mrlay;
调高度:
mrlay = (RelativeLayout) findViewById(R.id.rlay_1);
android.view.ViewGroup.LayoutParams pp =mrlay.getLayoutParams();
//mrlayt.getLayoutParams();
pp.height =180;
mrlay.setLayoutParams(pp);