Material-components-android: [BottomSheetBehavior] Shape corners behavior question and possible bug

Created on 21 Sep 2019  路  5Comments  路  Source: material-components/material-components-android

If a bottom sheet has rounded courners it will animate its to sharp state if the sheet is fully expanded.
But I believe it should keep rounded corners if it height is smaller than the screen height and fit contents is true.
So we can see a nice rounded bottom sheet with a small menu for example.

bug duplicate

Most helpful comment

I have found a nice method BottomSheetBehavior::disableShapeAnimations() which is marked as LIBRARY_GROUP. It can do the trick as well but we need to get it as public.

All 5 comments

@hrach When it will be merged?

No idea. Just linking pr. :-)

I have found a nice method BottomSheetBehavior::disableShapeAnimations() which is marked as LIBRARY_GROUP. It can do the trick as well but we need to get it as public.

Marking this as a dup of #463. I'll check-in on the PR status.

Was this page helpful?
0 / 5 - 0 ratings