How do I get the height of a BottomSheetDialog *before* sliding?

Viewed 22

It's pretty easy to get the height of a BottomSheetDialog with the BottomSheetCallback while the user is scrolling, but is it possible to get it at any other time? I'm using isFitToContents = true so I don't know the initial height.

i.e. How do I get the height of an auto-sizing BottomSheetDialog outside the BottomSheetCallback.onSlide() method? I'll take slideOffset or an actual pixel height.

0 Answers
Related