-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[BottomSheetDialog] Rounded corners in expanded state #1278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This sounds related to something @melaniegoetz is working on internally/ |
@wcshi @melaniegoetz Please provide us with expected date for solving this issue |
|
It seems to be an expected behavour. Check this comment in PR: #437
Also in the design doc there is indication to use flat corners when the bottomsheet is expanded..
You can find in the PR a solution or you can check this question on SO: |
I just stumbled upon another solution to keep the rounded corners. If you just set
|
@Fishfield Can you share a more complete example? I've tried setting |
You can try this:
in bottom sheet layout
drawable/rounded_top_corners_background :
in activity/application theme
|
This worked for me! 8/2021 |
I'll close the issue since it's WAI according to our designers' opinion and there are solutions for clients to override the behavior. Thank you all for your feedbacks! |
Your solution worked, you saved my day! |
Try this
|
FYI since 1.8 rounded corners become a standard design with M3 styles, no matter it's collapsed or expanded. : ) |
Note these are currently only visible in the collapsed state. - [Google issue](https://issuetracker.google.com/issues/144859239) - [Rejected PR](material-components/material-components-android#437) - [Github issue](material-components/material-components-android#1278)
Note these are currently only visible in the collapsed state. - [Google issue](https://issuetracker.google.com/issues/144859239) - [Rejected PR](material-components/material-components-android#437) - [Github issue](material-components/material-components-android#1278)
* Add new attachments selection dialog * Add rounded corners to bottom sheet dialog. Note these are currently only visible in the collapsed state. - [Google issue](https://issuetracker.google.com/issues/144859239) - [Rejected PR](material-components/material-components-android#437) - [Github issue](material-components/material-components-android#1278) * Add changelog entry * Remove redundant call to superclass click listener * Refactor to use view visibility helper * Change redundant sealed class to interface * Remove unused string * Revert "Add rounded corners to bottom sheet dialog." This reverts commit 17c43c9. * Remove redundant view group * Remove redundant `this` * Update rich text editor to latest * Update rich text editor version * Allow toggling rich text in the new editor * Persist the text formatting setting * Add changelog entry
* Add new attachments selection dialog * Add rounded corners to bottom sheet dialog. Note these are currently only visible in the collapsed state. - [Google issue](https://issuetracker.google.com/issues/144859239) - [Rejected PR](material-components/material-components-android#437) - [Github issue](material-components/material-components-android#1278) * Add changelog entry * Remove redundant call to superclass click listener * Refactor to use view visibility helper * Change redundant sealed class to interface * Remove unused string * Revert "Add rounded corners to bottom sheet dialog." This reverts commit 17c43c9. * Remove redundant view group * Remove redundant `this` * Update rich text editor to latest * Update rich text editor version * Allow toggling rich text in the new editor * Persist the text formatting setting * Add changelog entry
For those who do not want to use M3, just upgrade to latest version and add |
pougf 👿 |
Description:
BottomSheetDialog
has rounded corers only if it's not expanded. Corners are rounded as it's specified in theShapeAppearance
during swipe or in collapsed state. OnceBottomSheetDialog
becomes expanded, rounded corners are animated to sharp corners.Expected behavior: Rounded corners should not change in expanded state if expanded state is not full screen. It would be great to have ability to disable this behavior at least.
Source code:
Android API version: 29
Material Library version: 1.2.0-alpha06
Device: Pixel 3
The text was updated successfully, but these errors were encountered: