I found a simple trick to solve the problem. Inside FragmentContainerView
I'm showing a specific fragment and there is NestedScrollView
inside the fragment.
I gave these attributes to the NestedScrollView
android:clipToPadding="false"
android:paddingBottom="Should be the same height of BottomNavigationView"
Now the content inside FragmentContainerView
will be top of BottomNavigationView
and never will touch BottomNavigationView
.
The disadvantages of this way
BottomNavigationView
will cover itNestedScrollView
, The color will touch BottomNavigationView
But at least it is working as I want.
* Be the first to Make Comment