ConstrainLayout 代码设置 关联Parent
2019-05-30 本文已影响0人
zii4914
ConstraintLayout.LayoutParams lp = (ConstraintLayout.LayoutParams) mBtnConfirm.getLayoutParams();
lp.leftToRight = -1;
lp.leftToLeft = ConstraintLayout.LayoutParams.PARENT_ID;
ConstraintLayout.LayoutParams lp = (ConstraintLayout.LayoutParams) mBtnConfirm.getLayoutParams();
lp.leftToRight = -1;
lp.leftToLeft = ConstraintLayout.LayoutParams.PARENT_ID;