Skip to content

Instantly share code, notes, and snippets.

@dynoChris
Created January 9, 2022 08:58
Show Gist options
  • Save dynoChris/282bae9239507b9b96d1e43e714bee05 to your computer and use it in GitHub Desktop.
Save dynoChris/282bae9239507b9b96d1e43e714bee05 to your computer and use it in GitHub Desktop.
How to add shadow to the text Android
android:shadowColor="#000"
android:shadowDx="-2"
android:shadowDy="-2"
android:shadowRadius="5"
<TextView
android:id="@+id/title_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="20dp"
android:fontFamily="@font/luckiestguy"
android:shadowColor="#000"
android:shadowDx="-2"
android:shadowDy="-2"
android:shadowRadius="5"
android:text="Where is scary teacher’s dress?"
android:textAlignment="center"
android:textColor="#fff"
android:textSize="30sp" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment