In my BottomSheetDialogFragment
I use this option (fitsSystemWindows = false
) to fix strange effect while scrolling to bottom example gif (MapView
is on top of navigation bar)
override fun onActivityCreated(savedInstanceState: Bundle?) {
super.onActivityCreated(savedInstanceState)
(requireView().parent.parent.parent as View).fitsSystemWindows = false
}
But than it causes another problem, when any view's
size changes or EditText
receives focus dialog height were jumped on top of status bar and navigation bar is also transparent
example 2 gif
Does anyone had the same problem or any idea how to fix this strange jumps