title: How to add shadow to image programmatically in Android?
body: <p>I have a number of various predefined shapes (geometric, animals, plants, signs, etc.), like the one attached, but without a shadow. Images, containing these shapes, can be saved either as assets or resources.</p>
  
  <p><a href="https://i.stack.imgur.com/iAXQJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iAXQJ.jpg" alt="enter image description here"></a></p>
  
  <p>Is there a way to add shadow programmatically? If the solution works only for certain image format(s) (bmp, png, svg, etc.) - I can adjust the format as required.</p>