Basically, it works like a stack where each view is stacked on top of the other.
Create a drawable file for shadow view and assign the name image_shadow and add the below code in this file.
Now, open the XML file and add the below code into it, and set this drawable file as view background.
That’s it. You should be ready to go.