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 \

约束布局ConstraintLayout ,报错:This view is not constrained vertically

原因:要两个方向才可以决定一个view的位置,细心对比一下,按这个选项前后增加的语句。

例如:一个view的左边和上边parent对齐才可以决定他的位置,如果只写其中一个就会报

 

原文:https://blog.csdn.net/u010296640/article/details/72922165

 

相关文章:

  • 2021-07-03
  • 2021-10-13
  • 2022-01-23
  • 2021-05-23
  • 2021-06-10
  • 2022-12-23
  • 2021-07-25
  • 2021-04-14
猜你喜欢
  • 2021-12-16
  • 2022-01-22
  • 2022-12-23
  • 2021-11-08
  • 2021-07-29
  • 2021-08-30
相关资源
相似解决方案