Material-components-android: [bottomsheet] do not remove corners when bottomsheet is not fully expanded

Created on 23 Jul 2019  路  2Comments  路  Source: material-components/material-components-android

Description:

Currently, when bottomsheet is in an expanded state and its content is wrapped (fitToContents) then the corners are animated to 0dp. This leads to quite unwanted behavior.

Screenshots attached from catalog app. (large shape corner size in settings required):

Screenshot:

device-2019-07-13-121306

Expected behavior:

Screenshot:

device-2019-07-13-121429

Source code: The catalog app.
Android API version: API 29
Material Library version: 1.1.0-alpha08
Device: Pixel 2

Also pull-requested #437

bug

All 2 comments

Yes, I believe it should not animate corners if fit contents = true but do that if we have fit contents = false only.

Design wants this to continue to work as is.

Please see context from the PR here: https://github.com/material-components/material-components-android/pull/437#issuecomment-536668983

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JakeWharton picture JakeWharton  路  3Comments

magnusfernandes picture magnusfernandes  路  3Comments

ahmaducg picture ahmaducg  路  3Comments

mnayef95 picture mnayef95  路  3Comments

Mirmuhsin picture Mirmuhsin  路  3Comments