问题:android开发中,ScrollView中含有WebView。那么WebView的layout_height="fill_parent"属性没有效果。
解决方法:在ScrollView中加入android:fillViewport="true"这个属性。
Indicates whether this ScrollView's content is stretched to fill the viewport.
指示是否这个滚动视图的内容延伸到整个视图。
问题:android开发中,ScrollView中含有WebView。那么WebView的layout_height="fill_parent"属性没有效果。
解决方法:在ScrollView中加入android:fillViewport="true"这个属性。
Indicates whether this ScrollView's content is stretched to fill the viewport.
指示是否这个滚动视图的内容延伸到整个视图。