(1)垂直方向滚动时,layout_width要设置为match_parent,layout_height要设置为wrap_content
(2)水平方向滚动时,layout_width要设置为wrap_content,layout_height要设置为match_parent
(3)滚动视图节点下面必须且只能挂着一个子布局节点
(4)ScrollView的实际内容不够时,若想填满屏幕,可以增加fillViewport属性设置
(1)垂直方向滚动时,layout_width要设置为match_parent,layout_height要设置为wrap_content
(2)水平方向滚动时,layout_width要设置为wrap_content,layout_height要设置为match_parent
(3)滚动视图节点下面必须且只能挂着一个子布局节点
(4)ScrollView的实际内容不够时,若想填满屏幕,可以增加fillViewport属性设置
转载于:https://www.cnblogs.com/soldierback/p/10808150.html