I have a diagonal shaped imageview. When i clicked the imageview it doesn't respect the clipped area and perform clicking on the transparent area aswell. 

How can i make only non transparent area or shape clickable? You can see the view's source code [here](https://github.com/santalu/diagonal-imageview/blob/master/library/src/main/java/com/santalu/diagonalimageview/DiagonalImageView.java) if needed

Thanks in advance.

[![enter image description here](https://i.stack.imgur.com/nTJ0F.png)](https://i.stack.imgur.com/nTJ0F.png)

[![enter image description here](https://i.stack.imgur.com/FcKlp.png)](https://i.stack.imgur.com/FcKlp.png)