Is it possible to make a shadow around the View programmatically or through the markup so that it is uniform around the perimeter and given width, as shown in the figure below?
- Are there really no ideas how to make such a shadow for different buttons and other ui? Well, do not draw the same png image shadow for each button and other View for all sizes .. - Alex455
|
1 answer
But didn’t you try to use View.setElevation () and View.setTranslationZ () as in the Material Design documentation? Https://developer.android.com/training/material/shadows-clipping ?
- There's also a kind of shadow with the offset down .. I need to have a uniform around the perimeter was, as in the picture that I cited above .. - Alex455 September
|
