Custom Dialogs (Without Extensions)

Custom Dialog Extra

Hi everyone, recently a user needed a drawer layout and, thanks to this guide, we managed to recreate it.
So, I wanted to share the result publicly.
On top of that, I also added a custom snackbar and a full-screen Lottie, which can produce some really nice effects.

drawer

snackbar

lottie

:warning:
With the recent update to SDK35, I noticed that the title bar and status bar were causing issues, so I removed them for convenience.
If you need them active, you just have to subtract them from the height variable.

I left the GetMetrics extension implemented, it can be removed and replaced with the +2 method.

And I modified this part of the setDialogLayout function.

CustomDialogExtra.aia (50.9 KB)

Happy :kodular:oding!!!

3 Likes