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 \
原因:要两个方向才可以决定一个view的位置,细心对比一下,按这个选项前后增加的语句。
例如:一个view的左边和上边parent对齐才可以决定他的位置,如果只写其中一个就会报
原文:https://blog.csdn.net/u010296640/article/details/72922165