2013年8月18日星期日

Android TextView advanced features using

 

TextView are generally used to display a text, advanced features here that we usually do not mainly some commonly used properties. Including text shadows, custom fonts, html embedded multi-format, font, bold, insert pictures. These characteristics usually development of APP, it may generally use much, but when needed it is very useful feature.

 

reason why I wrote this article because today Launcher inside interface to modify the font when encountered some problems, but the Launcher icon are TextView to do, so finding TextView some special properties.

 

(PS: the new QQ group, who are interested can join together to discuss: Android group: 322599434)

 

 

1, text shadow

 
  
   
//Edited by mythou
//http://www.cnblogs.com/mythou/
  
android:shadowColor="#000000" 
android:shadowDx
="15.0"
android:shadowDy
="5.0"
android:shadowRadius
="2.5"
 
 

shadowColor set the shadow color; shadowDx set the shadow horizontal offset; shadowDy set the shadow vertical offset; shadowRadius set the shadow radius. The caveat here is that if you need the original font shadow and overlap, you need to set shadowDx and shadowDy to -1, and set the shadowRadius bigger. The above properties can be directly embedded into the TextView labels can also be used to define

1 条评论:

  1. Maybe that directory, or whole server requires password authentication?

    回复删除