2

I'm trying to use CardView whose bottom edge is curved like the below image. I don't want curved corners and just want bottom of card or any other View to be curved. How can I achieve this?

Thanks

enter image description here

Abhi
  • 2,115
  • 2
  • 18
  • 29
  • You probably want to use a custom view for this. It doesn't really look like a CardView anyway. Plus the curves from the CardView are always the same. Start here I guess https://developer.android.com/training/custom-views/index.html :) – Raymond Dec 01 '16 at 10:51
  • Not CardView, any View in general. Thanks for the link, I'll try and let you know. :) – Abhi Dec 01 '16 at 10:53
  • You need to create custom view with custom background, or with overridden onDraw method. @see http://developer.android.com/training/custom-views/custom-drawing.html – hornet2319 Dec 01 '16 at 10:54
  • You can simply use a 9 patch. – Phantômaxx Dec 01 '16 at 11:06
  • @Rotwang Actually the data in the view is coming dynamically. – Abhi Dec 01 '16 at 11:11
  • This is irrelevant. You just want to draw (or simply display) a curved edge. – Phantômaxx Dec 01 '16 at 11:18

0 Answers0