Created
April 9, 2014 20:00
-
-
Save StackTipsLab/10308608 to your computer and use it in GitHub Desktop.
Shadow Effect on Android TextView using XML Layout
This file contains 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
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
android:orientation="vertical" | |
android:padding="20dp" > | |
<TextView | |
android:id="@+id/textview" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center_horizontal" | |
android:shadowColor="#000" | |
android:shadowDx="0" | |
android:shadowDy="0" | |
android:shadowRadius="50" | |
android:text="Text Shadow Example1" | |
android:textColor="#FBFBFB" | |
android:textSize="28dp" | |
android:textStyle="bold" /> | |
<TextView | |
android:id="@+id/textview2" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center_horizontal" | |
android:text="Text Shadow Example2" | |
android:textColor="#FBFBFB" | |
android:textSize="28dp" | |
android:textStyle="bold" /> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment