感謝:https://issuetracker.google.com/issues/209981793
方式一:當(dāng)Barrier綁定的對象中,存在TextView layout_width/layout_height="wrap_content"且 layout_constrainedWidth/layout_constrainedHeight="true",那么就會出現(xiàn) Barrier位置不準(zhǔn)確的問題,所以在該場景下請不要使用layout_constrainedWidth/layout_constrainedHeight
方式二:
在外層的Constraintlayout中設(shè)置:
app:layout_optimizationLevel="none"
// 在我的項(xiàng)目中會引發(fā)其他的計(jì)算問題