約束佈局ConstraintLayout ,報錯:This view is not constrained vertically

This view is not constrained vertically: at runtime it will jump to the left unless you add a vertic 解決方案:  1.切換xml到design試圖下  2.選中ConstraintLayout右鍵選擇Constraint Layout中的Infer Constraints \ 原因:要兩個方向纔可
相關文章
相關標籤/搜索