簡體   English   中英

ConstraintSet.Constraint::margin 指的是什么?

[英]What does ConstraintSet.Constraint::margin refer to?

我打電話

constraintSet.connect(viewId, START, leftId, leftId == 0 ? START : END, margin);

我看到的套裝:

constraintSet.constraint.leftMargin = margin;

但是這個constraintSet.constraint.leftMargin是什么意思呢?

邊距設置為視圖。 邊距對constraint什么影響?

此視圖的左邊緣與其限制為的視圖之間的邊距。 例如,如果這受限於其父級,則左邊距將指定此視圖的左邊緣與其父級之間的間隙

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM