ScrollView子布局填滿整個(gè)屏幕
- ScrollView直接子View只能有一個(gè),一般高度是自適應(yīng)內(nèi)容高度翠肘,可能會(huì)遇到不能填滿整個(gè)屏幕的情況,那么解決辦法就是增加一個(gè)屬性:
android:fillViewport="true"
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
...
</ScrollView>