How to apply shadow to a view in android?

By | November 16, 2011

This is a simple example showing how to create a shadow for a textView in android.

<TextView
	    android:layout_width="fill_parent"
		android:layout_height="wrap_content"
		android:text="CoderzHeaven"
		android:textColor="#FF0000"
		android:shadowColor="#008000"
		android:shadowRadius="1.5"
		android:shadowDx="2"
		android:shadowDy="5"
		android:textSize="35sp"
		android:gravity="center"
    />
shadow in view

TextView shadow in android

Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive

Leave a Reply

Your email address will not be published. Required fields are marked *