My layout:
<CoordinatorLayout>
<FrameLayout />
<BottomNavigationView />
</CoordinatorLayout>
This bottom navigation has a CoordinatorLayout.Behavior that manages hiding it when the fragment displayed in the FrameLayout is scrolled.
I do not understand how I could prevent the FrameLayout overlapping with the bottom navigation since I cannot place them in another layout because the BottomNavigationView needs to be a direct child for the CoordinatorLayout behavior.
As a workaround, when I set a bottom padding on the FrameLayout, that works, but then the space remains empty when the bottom navigation is hidden, changing it with an animation would be possible but seems like quite some work.
Is there really no way I can align children in a CoordinatorLayout in a way that they don't overlap?