test

android:textAppearance

xml布局里面设置文字的外观:

如“android:textAppearance=“?android:attr/textAppearanceLargeInverse”这里引用的是系统自带的一个外观,

?表示系统是否有这种外观,否则使用默认的外观。

可设置的值如下:

textAppearanceButton/  

textAppearanceInverse/  

textAppearanceLarge/  

textAppearanceLargeInverse/ 

textAppearanceMedium/    

textAppearanceSmallInverse/ 

代码中加下划线

textView.getPaint().setFlags(Paint. UNDERLINE_TEXT_FLAG ); //下划线

textView.getPaint().setAntiAlias(true);//抗锯齿

posted @ 2014-04-18 20:49  Lechance  阅读(128)  评论(0编辑  收藏  举报