Tuesday 23 September 2014

TextView native Shadow Effect

 
In android not require to take extra resource to like image to make text view text have shadow effect. to make native effect to TextView follow this few lines of code


<TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
               

                android:shadowColor="#000000"                

                android:shadowDx="2"                

                android:shadowDy="2"                

                android:shadowRadius="2"                

                

                android:text="Your Text With Shadow"
                android:textColor="#FF0000"
                android:textSize="20sp" />


View Display like




Above highlighted line that is to make simple shadow effect to TextView. and make your application light weight and increase your performance

No comments:

Post a Comment