scrollview的直接子布局只能是一个,而且默认是wrap_content,当我们使用scrollview的时候还需要其直接子布局充满全屏,这时候使用match_parent是没有效果的,需要使用scrollview的fillViewport属性设置为true
image.png
scrollview的直接子布局只能是一个,而且默认是wrap_content,当我们使用scrollview的时候还需要其直接子布局充满全屏,这时候使用match_parent是没有效果的,需要使用scrollview的fillViewport属性设置为true