Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is the menu layout corner possible? #2

Open
shy1008 opened this issue Feb 10, 2021 · 0 comments
Open

Is the menu layout corner possible? #2

shy1008 opened this issue Feb 10, 2021 · 0 comments

Comments

@shy1008
Copy link

shy1008 commented Feb 10, 2021

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());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant