AS4.1中ConstraintLayout中創建Button報錯的解決辦法

在約束佈局中添加Button控件後,發現xml飄紅了! 2)報錯信息爲:「This view is not constrained, it only has designtime positions, so it will jump to (0,0)…」,以下爲解決方案路徑.將Text視圖切換到Design,位於正中間,點擊一下類似魔法棒的工具(Infer Constraints)即可.如下圖所示
相關文章
相關標籤/搜索