BlurDrawerLayout icon indicating copy to clipboard operation
BlurDrawerLayout copied to clipboard

Is the menu layout corner possible?

Open shy1008 opened this issue 4 years ago • 0 comments

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());

shy1008 avatar Feb 10 '21 03:02 shy1008