Android studio 使用约束布局(ConstraintLayout)报错:

This view is not constrained vertically: at runtime it will jump to the left unless you add a vertical constraint less… (Ctrl+F1)
The layout editor allows you to place widgets anywhere on the canvas, and it records the current position with designtime attributes (such as layout_editor_absoluteX.) These attributes are not applied at runtime, so if you push your layout on a device, the widgets may appear in a different location than shown in the editor. To fix this, make sure a widget has both horizontal and vertical constraints by dragging from the edge connections.
This view is not constrained vertically: at runtime it will jump to the left unless you add a vertic_第1张图片

解决方案:
1.切换xml到design试图下
2.选中ConstraintLayout右键选择Constraint Layout中的Infer Constraints
This view is not constrained vertically: at runtime it will jump to the left unless you add a vertic_第2张图片

更多相关文章

  1. Android常用布局颜色值大全
  2. android checkbox 或RadioButton, textView居左居右布局
  3. Android实用图片显示控件photoview
  4. 水平布局linerlayout
  5. android原生分享图片失败的问题
  6. Android TextView带背景图片和自定义边框
  7. Android 简单的图片查看器源码实现
  8. 【android】launcher图标自动生成、点9图片在线编辑工具
  9. Imageview图片圆形显示

随机推荐

  1. Android(安卓)Studio:AndroidX的迁移
  2. android app模拟 persistent 属性可以保
  3. 关于安装Android(安卓)Studio的一些问题
  4. 【译】Android开发指南(1)--什么是Androi
  5. 怎样做出一个dialog样式的activity
  6. android控件的对齐方式(转)
  7. Android(安卓)Design 4.4中文版发布
  8. Android界面布局——视图/容器易混淆点总
  9. Android(安卓)SQLite
  10. Android(安卓)TextView属性详解