How to set
shadow textview text in android . we will implement
In this main_activity.xml
class.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/rl"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
android:padding="16dp"
tools:context=".MainActivity" >
<TextView
android:id="@+id/tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:shadowColor="#96281B"
android:shadowDy="-5"
android:shadowRadius="5"
android:text="ANDROID BEGINNERPOIT TUTORIAl"
android:textColor="#D91E18"
android:textSize="30dp"
android:textStyle="bold" />
<TextView
android:id="@+id/tv2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tv"
android:shadowColor="#ff6cc450"
android:shadowDy="5"
android:shadowRadius="5"
android:text="ANDROID BEGINNERPOIT TUTORIAl"
android:textColor="#fffa2bff"
android:textSize="30dp"
android:textStyle="bold" />
<TextView
android:id="@+id/tv3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tv2"
android:shadowColor="#22313F"
android:shadowDx="5"
android:shadowRadius="5"
android:text="ANDROID BEGINNERPOIT TUTORIAl"
android:textColor="#22A7F0"
android:textSize="30dp"
android:textStyle="bold" />
<TextView
android:id="@+id/tv4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tv3"
android:shadowColor="#ff6cc450"
android:shadowDx="-5"
android:shadowRadius="5"
android:text="ANDROID BEGINNERPOIT TUTORIAl"
android:textColor="#663399"
android:textSize="17dp"
android:textStyle="bold" />
<TextView
android:id="@+id/tv5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tv4"
android:shadowColor="#BF55EC"
android:shadowDx="5"
android:shadowDy="5"
android:shadowRadius="5"
android:text="ANDROID BEGINNERPOIT TUTORIAl"
android:textColor="#fffa2bff"
android:textSize="30dp"
android:textStyle="bold" />
0 comments