Is there a way to apply shadowRadius to a transparent ImageView in Android? For a TextView the following works:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:shadowColor="@color/textShadowColor"
android:shadowRadius="15"
android:shadowDx="0"
android:shadowDy="0" />
How can I achieve same effect for an arrow icon placed next to the text in Android? In iOS the following works out of the box:
Image("arrow")
.shadow(color: textShadowColor, radius: textShadowRadius, x: 0.0, y: 0.0)
Text("my text")
.shadow(color: textShadowColor, radius: textShadowRadius, x: 0.0, y: 0.0)
from Applying shadow to transparent image in Android
No comments:
Post a Comment