I need create xml with two layout title and description. In title layout I need add border have half of circle in bottom left and right, and with description layout border have half of circle in top left and right. Here is my design
I can do it with create two half circle over line of rectangle radius border, but I don't want use this. How I can do it with another solution? Please give me key work or solution to do it! Thank you so much!
You can use the
ShapeAppearanceModel
defining a customCornerTreatment
to apply to the components. Something like:where the
ConcaveRoundedCornerTreatment
is:Just do the same with the description layout:
If you are using a view like a
CardView
which has a built-inshapeAppearanceModel
: