this view is not constrained. It only has designtime positions, so it will jump to (0,0) at runtime

此视图不受约束,它只有设计时位置,所以在运行时它会跳到(0,0)。

解决方法:
  • 我的AndroidStudio版本是3.1.4

    《this view is not constrained. It only has designtime positions, so it will jump to (0,0) at runtime》 image.png

  • 低版本解决方法:
    Constraint Layout” —> “Infer Constraints”

上述是解决随意拖动控件无约束的情况,大多情况下个人建议添加上约束较好。

《this view is not constrained. It only has designtime positions, so it will jump to (0,0) at runtime》 image.png

    原文作者:她的梦z
    原文地址: https://www.jianshu.com/p/1c5709754f97
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞