您的位置:首页 > 移动开发 > Android开发

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

2012-02-26 16:56 211 查看

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



android:textAppearance


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

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

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

可设置的值如下:

textAppearanceButton/


textAppearanceInverse/


textAppearanceLarge/


textAppearanceLargeInverse/


textAppearanceMedium/


textAppearanceSmallInverse/


textAppearanceMediumInverse/


textAppearanceSmall/


代码中加下划线
textView.getPaint().setFlags(Paint. UNDERLINE_TEXT_FLAG ); //下划线

textView.getPaint().setAntiAlias(true);//抗锯齿
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: