Writing it here since other blogposts don’t mention it and I’ve spent 4 hours before figuring this out:

make sure to extend the ThemeOverlay.MaterialComponents.*.BottomSheetDialog theme when trying to implement rounded corners otherwise it won’t work. (For some reason the compiler wasn’t suggesting after reaching, for example, ThemeOverlay.MaterialComponents.Light. , just keep writing the relative component and all will work)

Senior Android Engineer @WeTransfer 🤖 🇻🇪🇮🇹 Paraglider, Runner, Kayaker.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store