question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BottomSheetDialogFragment ShapeAppearance bug

See original GitHub issue

I have discovered a strange behavior. If I set this snipped as a shapeAppearanceOverlay to the bottom sheet, I get a glitch. When I try to close the bottom sheet by dragging to the bottom I can see that rounded corners animate out for a moment and return back after that. I think it should be rounded all the way while I’m dragging the dialog and became square only in full height mode, shouldn’t it?

<style name="ShapeAppearanceOverlay.App.BottomSheet.Modal" parent="ShapeAppearanceOverlay.MaterialComponents.BottomSheet.Modal">
        <item name="cornerSizeTopLeft">@dimen/custom_corner_large</item>
        <item name="cornerSizeTopRight">@dimen/custom_corner_large</item>
    </style>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:17
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
Zeliretcommented, Aug 1, 2019

Alpha09 is here but still no fix for that issue 😭

2reactions
hrachcommented, Apr 25, 2019

Having exactly the same issue 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Round corner for BottomSheetDialogFragment - Stack Overflow
Note to all: Using this answer will cause all component using ShapeAppearance.MaterialComponents.LargeComponent to have same cornerSize and ...
Read more >
Kizito Nwose on Twitter: "@chmeadow I use the ShapeAppearance ...
I'm using really naive code to show a bottom sheet dialog fragment: class ... BottomSheetDialogFragment ShapeAppearance bug · Issue #325 ...
Read more >
Modal Bottom Sheets - Material Design
BottomSheetDialogFragment is a thin layer on top of the regular support library Fragment that renders your fragment as a modal bottom sheet, ...
Read more >
ShapeAppearanceModel | Android Developers
This class models the edges and corners of a shape, which are used by MaterialShapeDrawable to generate and render the shape for a...
Read more >
Customizing your bottom sheet's corners - Bryan Herbst
... right shape for your bottom sheet is to define a shape appearance. ... (both BottomSheetDialog and BottomSheetDialogFragment ), you can ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found