Reputation: 650
How to create this custom shape in android ?
My requirement is, i want to create a CardView with above shape. Inside this cardview, there will be other textviews and imageviews present. Under the top curve of the card, i need to place a small icon.
Can this shape be created in UI design tools like figma ?
If it is possible in Figma, then we can take the XML generated in figma and use it in android code.
Upvotes: 0
Views: 192
Reputation: 11
create xml file in drawable folder with Root Element "layer-list" and copy this code inside of "layer-list" tag :) , add the code to the cardview background
Unfortunately, I could not add the code in the comment Please see the photo
Upvotes: 0