I searched about the shadow button (shown below) but haven't found the desired result. I want same as shown in the image below.

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

I tried this also [How to provide shadow to Button](https://stackoverflow.com/questions/15333529/how-to-provide-shadow-to-button).

I also tried elevation and translation Z (z) android method for shadow but nothing helped. Please guide me through this.
Thank you.