I'm trying to move views vertically in a BottoSheetDialog, but I'm getting an unexpected behavior.
My BottomSheet looks like this
Before Translation
I'm moving my constraint Layout with
myLayout.animate().translationY(-100f).setStartDelay(0).start()
That's the BottomSheet after the translation:
After Transition
How can I increase the size of the BottomSheet dynamically to follow the translation?