How to implement android card view edges like below image

Custom view to implement card view edges like in image. (https://i.stack.imgur.com/2pc5M.png)