Closed adesun2k closed 2 years ago
This should not require any changes within the library.
The DrawerLayout
is responsible to view the slider view within the drawer. Wheras the slider is just a normal view hierarchy.
This means you should be able to use Android APIs to apply some rounded corners like:
sliderView.outlineProvider = object : ViewOutlineProvider() {
override fun getOutline(view: View, outline: Outline) {
outline.setRoundRect(0, 0, view.width, view.height, context.resources.getDimension(R.dimen.corner_radius))
}
}
sliderView.clipToOutline = true
The above will round all corners of the rectangle, but with a different outline provider you can adjust it to only round some corners
Thanks Mike. You are just the best.
Hi Mike, Great job. Please can we have a drawer with rounded corners? Thanks