<include/>
标签向包含的布局添加属性,你必须在标签本身中指定宽度和高度,覆盖或仅仅确认包含布局的根标签的宽度和高度。
例如:
<include
layout="@layout/item_place_custom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent" />
<include/>
标记,如此处所述。<include>
布局已经合并为父级。我将其更改为Framelayout,问题得到了解决!