Created
January 9, 2022 08:58
-
-
Save dynoChris/282bae9239507b9b96d1e43e714bee05 to your computer and use it in GitHub Desktop.
How to add shadow to the text Android
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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