0

I am designing a custom Drawer on Android, it must have rounded corners in top and bottom, I am first customizing top side and I find the problem that the background of the shape is not transparent.

I have:
1

I need to build: plus background blur
2

I used this code to give a corner, but after using DrawerLayout -> BlurDrawerLayout it doesn't work.

my code:

var navViewBackground = navi.background as MaterialShapeDrawable
       navViewBackground.setShapeAppearanceModel(
                navViewBackground.getShapeAppearanceModel()
                    .toBuilder()
                    .setTopRightCorner(CornerFamily.ROUNDED, radius.toInt())
                    .setBottomRightCorner(CornerFamily.ROUNDED, radius.toInt())
                    .build());

I tried blur using the BlurDrawerLayout library.

https://github.com/BALUSANGEM/BlurDrawerLayout

It's okay to suggest a better way.

shy1008
  • 1
  • 1

0 Answers0