How do I make a shadow for png or svg drawable by contour?

You must drop the shadow from the view element. There is a picture in svg and png format. But I can't do it correctly.

Option without shadow:

enter a description of the image here

The shadow option to get:

enter a description of the image here

Author: Alexandr_TT, 2019-05-30

1 answers

Perhaps my data is outdated, but it seems to be software-nothing. Elevation gives a shadow only on a couple of shapes from drawable, and then on some not as on the rest. Android svg does not support any shadows. You can use a gradient to draw a shadow for an object with smooth edges, but not in your case. There is only one option left - to draw the shadow in png along with the{[1] element itself]}

 0
Author: Спицко Дмитрий, 2019-05-31 07:13:17