How to clip semi circle at top center of ImageView(Android)

184 Views Asked by At

I need to clip a semi circle at top center of the ImageView like in the cd cover below CD Cover

As I didn't worked on canvas in Android,I have no idea to achieve this!

1

There are 1 best solutions below

4
Bhavya Shah On

You could use the following approach:

1) Create a Relative layout with 2 elements:
- A semi Circle shape
- You image

2) Align the semi circle on the image view
3) Make Your linear layout as a custom view (optional) else directly use it