Skip to content

Is the menu layout corner possible? #2

@shy1008

Description

@shy1008

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions