Status Update
Comments
hu...@google.com <hu...@google.com> #2
Thanks for taking the time to file an issue.
So this is part of BottomSheet's design spec. The top left and right corners of bottom sheet are animated to be square when the BottomSheet's state is BottomSheetBehavior.STATE_EXPANDED (
With that said, as soon as your bottom sheet is shown it should technically be in the STATE_EXPANDED state and I would think it would square the corners off immediately (not requiring any user input to trigger the behavior). I'll speak with design and the team and find out if the current behavior this is working as intended or should be looked at.
jp...@gmail.com <jp...@gmail.com> #3
API / style xml? Open the discover tab of Google, click on a card's menu
option on bottom right. The sheet that appears is either already expanded
or not expandable, depending on how you want to look at it and/or technical
details. I cannot get the corners to disappear using the gesture recorded
with the attached example.
On Tue, Nov 26, 2019 at 10:44 AM <buganizer-system@google.com> wrote:
ha...@gmail.com <ha...@gmail.com> #4
Kindly please suggest the solution.
gm...@gmail.com <gm...@gmail.com> #5
I don't see anything related to this behavior in
There is already a
[Deleted User] <[Deleted User]> #6
Come on. The Google app, Google News, Youtube... All use bottom sheets that, when expanded, keep their rounded corners. This behavior is not documented anywhere in your Material specs and even your own apps don't respect it. Please provide a way to disable this annoying behavior directly as an API in BottomSheetBehavior.
[Deleted User] <[Deleted User]> #7
pa...@outlook.com <pa...@outlook.com> #8
This design decision is monumentally ignorant, for the lack of better wording. It's not because it was set up like this by default, but because there is no option to turn it off without resorting to unconventional hacks to work around the problem. It also does not take into account that bottom sheets may never go into fullscreen state, they may be set up as bottom dialogs that never go all the way up, resulting in rounded corner loss just from touching on it while it's open in peek height, which is an utterly disgusting behavior experience. Fix this already, jesus.
[Deleted User] <[Deleted User]> #9
st...@google.com <st...@google.com> #10
If you believe the issue is still affecting your project, please file a new issue at
Please be sure that the issue is reproducible using the latest version of the Material library, themes, and styles, and make sure to provide all relevant repro information (steps, screenshots, and a video).
Thank you.
Description
Before filing an issue, please read and follow these instructions carefully. When you're finished, please delete this instructions section (everything from the top line until the bottom line).
First, please search through existing issues to ensure that the bug has not already been reported. You can start the search here:
If the bug has already been filed, click the star next to the issue number to subscribe to the bug; we prioritize responding to the issues with the most stars. If you have additional context that could help us fix the bug, please leave a comment on the bug.
We also happily accept pull requests at
If the bug has not yet been reported, please file a bug as follows:
1. Replace “<Component name>” in the issue title with the relevant MDC Android component. If none exists, please delete the <Component name> section of the title.
2. Replace “<Short description of issue>” in the issue title with a brief description of the issue.
3. Fill out as many of the placeholders in the issue description below as you can.
4. Attach any relevant screenshots.
5. Put the version of material library you are using in the "Material Library Version" field below. This should be something like 1.1.0-alpha07. If a version doesn't apply, just put N/A. To help us triage faster, please check to make sure you are using the latest version of the library:
6. Erase this instructions section.
------------------------------------------------------------------------------------
Description: When the app theme has a bottomSheetDialogTheme which offers a shape appearance overlay via bottomSheetStyle -> shapeAppearanceOverlay, the shape appearance gets 'reset' after touches in the sheet occur and the sheet is not dismissed. Watch the webm for an example. In the attached MyApp sample, it only happens randomly and/or after a specific touch/drag sequence, in my real app, which puts in a RecyclerView in the sheet, it happens with absolutely any single touch occurs on the sheet and it is not dismissed.
I ahve only tested using the top rounded corners shape given below, as that is the only customization that concerns me.
- Expected behavior: sheet keeps rounded corners
- Source code: (see also MyApp.zip)
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.MaterialComponents.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="bottomSheetDialogTheme">@style/BottomSheetDialog</item>
</style>
<!-- BottomSheet Dialog Theme -->
<style name="BottomSheetDialog" parent="ThemeOverlay.MaterialComponents.BottomSheetDialog">
<item name="bottomSheetStyle">@style/CustomBottomSheet</item>
</style>
<style name="CustomBottomSheet" parent="Widget.MaterialComponents.BottomSheet">
<item name="shapeAppearanceOverlay">@style/CustomShapeAppearanceBottomSheetDialog</item>
</style>
<style name="CustomShapeAppearanceBottomSheetDialog" parent="">
<item name="cornerFamily">rounded</item>
<item name="cornerSizeTopRight">10dp</item>
<item name="cornerSizeTopLeft">10dp</item>
<item name="cornerSizeBottomRight">0dp</item>
<item name="cornerSizeBottomLeft">0dp</item>
</style>
</resources>
- Library version 1.1.0-beta2
- Android API version: 28
- Device: emulator
------------------------------------------------------------------------------------
IMPORTANT: Make sure you have deleted the instructions section above and this reminder before submitting this issue.
------------------------------------------------------------------------------------