在后台,它被列为constraintLayout,我试图在它上面插入一个线性水平布局。每当我将match_parent分配给android:layout_width和android:layout_height时,它会自动恢复为某些固定Dp(宽度为395dp,高度为587dp)。如何更改此设置?
答案 0 :(得分:0)
匹配父元素在约束布局中工作,您必须定义约束布局内的相对位置。你必须分配layout_constraintStart_toStartOf和layout_constraintEnd_toEndOf