ConstrainLayout 代码设置 关联Parent

ConstraintLayout.LayoutParams lp = (ConstraintLayout.LayoutParams) mBtnConfirm.getLayoutParams();
lp.leftToRight = -1;
lp.leftToLeft = ConstraintLayout.LayoutParams.PARENT_ID;

你可能感兴趣的:(ConstrainLayout 代码设置 关联Parent)