For Android / TextView,
Is there a way to have a shadow for the text but not to draw the shadow under transparent text? (it's easy achievable in iOS)
Look at the picture below. We can see the shadow through transparent text, so the text color is not the same - in some place it is darker, in other places - lighter.
Desired output - equal transparent text color, shadow is not visible under the text (it should look as when you prepared an image of non-transparent text with shadow, and then you programmatically changed Alpha of whole picture, so in result there is no shadow under text):