(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属性设置
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。