Android-ScrollView小計にネストされたViewを使用してフルスクリーンを設定する方法
1998 ワード
ScrollViewのプロパティandroid:fillViewport="true"を設定します.
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="20dp"
android:background="@color/red"
android:orientation="vertical">
LinearLayout>
FrameLayout>
ScrollView>