Shadows provide important visual cues about objects’ depth and directional movement. An object’s elevation determines the appearance of its shadow. For guidance on elevation and shadows in material design view Shadows and elevation guidance in the design guidelines.
For developer documentation on shadows in Android or Polymer:
Shadows are drawn and clipped by parent elements
Shadows are rendered in two layers to create a realistic effect