Hi everyone! I’m trying to disable the bottom corn...
# android
r
Hi everyone! I’m trying to disable the bottom corner rounding of
MaterialCardView
, but after applying it, all corners lose their rounding.
Copy code
mainCard.shapeAppearanceModel = mainCard.shapeAppearanceModel.toBuilder()
            .setBottomLeftCorner(CornerFamily.ROUNDED, 0f)
            .setBottomRightCorner(CornerFamily.ROUNDED, 0f)
            .setTopLeftCorner(CornerFamily.ROUNDED, resources.getDimension(R.dimen.cornerSize))
            .setTopRightCorner(CornerFamily.ROUNDED, resources.getDimension(R.dimen.cornerSize))
            .build()
stackoverflow 3