Search code examples
androidshapescustom-view

Diamond shape view


I try to create diamond shape View. I want use it in popup. Does anyone have any idea how to do it ?

Thx for any advice.

enter image description here


Solution

  • Take a look at the PathShape: it looks like you can just pass it a Path with the right lines/fill and draw it on the popup Dialog's canvas.