I have layout structure like this:
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- other layout content goes here -->
</androidx.core.widget.NestedScrollView>
<com.google.android.material.bottomappbar.BottomAppBar
android:id="@+id/bottomBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
app:hideOnScroll="true"
app:menu="@menu/menu_continue" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
NestedScrollView fills whole screen. If it happens scroll content is about the height of the screen (but not more then that), user sees non-scrollable content (because from NestedScrollView point of view there is no need to scroll) that goes under BottomAppBar.
Now I can easily workaround this by adding bottom padding or margin to the scroll view, but to me it's a hack. Is there any adequate clean solution to this problem?