码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2014-12-01 10:17:18      阅读:269      评论:0      收藏:0      [点我收藏+]

标签:android   style   http   ar   color   os   使用   sp   on   

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

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

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

可设置的值如下:

textAppearanceButton/  bubuko.com,布布扣

 

textAppearanceInverse/  bubuko.com,布布扣

 

 

textAppearanceLarge/  bubuko.com,布布扣

 

textAppearanceLargeInverse/ bubuko.com,布布扣


textAppearanceMedium/    bubuko.com,布布扣

 

textAppearanceSmallInverse/ bubuko.com,布布扣

 

textAppearanceMediumInverse/  bubuko.com,布布扣
 
textAppearanceSmall/   bubuko.com,布布扣
 
代码中加下划线
textView.getPaint().setFlags(Paint. UNDERLINE_TEXT_FLAG ); //下划线
textView.getPaint().setAntiAlias(true);//抗锯齿

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

标签:android   style   http   ar   color   os   使用   sp   on   

原文地址:http://my.oschina.net/liusicong/blog/350677

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!