约束布局

时间:2017-04-04 13:50:16

标签: layout constraints

我无法在约束布局中使用android studio版本2.3中的列表视图。每次我放置列表视图,它显示在constraintlayout中不支持MATCH_PARENT的错误。如何弄清楚这个问题

1 个答案:

答案 0 :(得分:1)

匹配父级是约束布局中布局宽度或高度的无效值。约束布局不支持march parent,而是使用匹配约束或0dp。

https://developer.android.com/training/constraint-layout/index.html#adjust-the-view-size

相关问题