<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/bg_color"
android:orientation="vertical">
....一大堆控件....
</LinearLayout>
</androidx.core.widget.NestedScrollView>
Aunque lo anterior está configurado para llenar la pantalla, el efecto de ejecutarlo no lo es.
Agregar propiedad fillViewport
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/bg_color"
android:orientation="vertical">
....一大堆控件....
</LinearLayout>
</androidx.core.widget.NestedScrollView>
¡NededScrollView y ScrollView son lo mismo!