Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save StackTipsLab/10308608 to your computer and use it in GitHub Desktop.
Save StackTipsLab/10308608 to your computer and use it in GitHub Desktop.
Shadow Effect on Android TextView using XML Layout
<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