BlurDrawerLayout
BlurDrawerLayout copied to clipboard
Is the menu layout corner possible?
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:
I need to build: plus background blur

I used this code to give a corner, but after using DrawerLayout -> BlurDrawerLayout it doesn't work.
my code:
navi = findViewById(R.id.navi23)
var navViewBackground = navi.background as MaterialShapeDrawable
navViewBackground.setShapeAppearanceModel(
navViewBackground.getShapeAppearanceModel()
.toBuilder()
.setTopRightCorner(CornerFamily.ROUNDED, radius.toInt())
.setBottomRightCorner(CornerFamily.ROUNDED, radius.toInt())
.build());