ScrollView子控件高度设置无效
2017-08-30 本文已影响168人
哇楼主
在ScrollView中设置子控件的高度,比如设置定高或者match_partent,会发现设置的高度不起作用
解决方法:设置ScrollView的fillViewport属性为true
android:fillViewport=”true”
在ScrollView中设置子控件的高度,比如设置定高或者match_partent,会发现设置的高度不起作用
解决方法:设置ScrollView的fillViewport属性为true
android:fillViewport=”true”