Loading

Tuesday, June 21, 2011

Set shadow of TextView in Java code, setShadowLayer()

Example:
        TextView textHello = (TextView)findViewById(R.id.hello);
textHello.setShadowLayer(
5f, //float radius
10f, //float dx
10f, //float dy
0xFFffffff //int color
);




Related article:
- Place shadow behind text using XML

SHARE TWEET

Thank you for reading this article Set shadow of TextView in Java code, setShadowLayer() With URL http://x-tutorials.blogspot.com/2011/06/set-shadow-of-textview-in-java-code.html. Also a time to read the other articles.

0 comments:

Write your comment for this article Set shadow of TextView in Java code, setShadowLayer() above!