Source https://stackoverflow.com/questions/3297437/shadow-effect-for-a-text-in-android
- colors.xml
<resources>
<color name="light_font">#FBFBFB</color>
<color name="grey_font">#ff9e9e9e</color>
<color name="text_shadow">#7F000000</color>
<color name="text_shadow_white">#FFFFFF</color>
</resources>- example1
<TextView
...
android:shadowColor="@color/text_shadow"
android:shadowDx="1"
android:shadowDy="1"
android:shadowRadius="2"
android:textStyle="bold" />- example2
<TextView
...
android:shadowColor="@color/text_shadow"
android:shadowDx="-1"
android:shadowDy="-1"
android:shadowRadius="1"
android:textStyle="bold" />- example3
<TextView
...
android:shadowColor="@color/text_shadow_white"
android:shadowDx="-2"
android:shadowDy="-2"
android:shadowRadius="1"
android:textStyle="bold" />Copyright 2021 M. Fadli Zein


