Android之系统自带的文字外观设置及实际显示效果图 android:textAppearance

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

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

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

可设置的值以下:xml

textAppearanceButton/  get

 

textAppearanceInverse/  引用

 

 

textAppearanceLarge/  im

 

textAppearanceLargeInverse/ margin


textAppearanceMedium/    word

 

textAppearanceSmallInverse/ img

 

textAppearanceMediumInverse/ 
 
textAppearanceSmall/  
 
代码中加下划线
textView.getPaint().setFlags(Paint. UNDERLINE_TEXT_FLAG ); //下划线 textView.getPaint().setAntiAlias(true);//抗锯齿
相关文章
相关标签/搜索