I have a BottomSheetDialogFragment and when i add a new fragment that is bigger from my screen is going to the top. But i want to add an offset so the whole bottom sheet leave space to the back so i can see my navigation bar.
I tried to add peekHeight = resources.displayMetrics?.heightPixels - X where x is an integer but does nothing.
I always want to have isfitToContents = true which is true by default and state = State.EXPANDED
How can i achieve this? Thank you