Android之系统自带的文字外观设置及实际显示效果图
2013-07-26 10:13
423 查看
android:textAppearance
如“android:textAppearance=“?android:attr/textAppearanceLargeInverse”这里引用的是系统自带的一个外观,
?表示系统是否有这种外观,否则使用默认的外观。
可设置的值如下:
textAppearanceButton/
textAppearanceInverse/
textAppearanceLarge/
textAppearanceLargeInverse/
textAppearanceMedium/
textAppearanceSmallInverse/
textAppearanceMediumInverse/
textAppearanceSmall/
代码中加下划线
textView.getPaint().setFlags(Paint. UNDERLINE_TEXT_FLAG ); //下划线
textView.getPaint().setAntiAlias(true);//抗锯齿
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);//抗锯齿
相关文章推荐
- Android之系统自带的文字外观设置及实际显示效果图
- Android之系统自带的文字外观设置及实际显示效果图
- Android之系统自带的文字外观设置及实际显示效果图
- Android之系统自带的文字外观设置及实际显示效果图
- Android系统自带的文字外观设置及实际显示效果图
- Android之系统自带的文字外观设置及实际显示效果图
- Android的系统自带的文字外观设置及实际显示效果图
- Android之系统自带的文字外观设置及实际显示效果图
- Android之系统自带的文字外观设置及实际显示效果图
- Android之系统自带的文字外观设置
- Android-Toolbar title文字大小设置及居中显示
- android 系统自带分享文字+图片到微信朋友圈
- Android系统自带分享功能的实现(可同时分享文字和图片)
- ios开发如何让navigationItem自带的返回按钮设置成图片或者不显示文字
- android--设置TextView部分文字的颜色和背景(高亮显示)
- android设置系统图标后手机上不显示出来
- android系统自带的字体外观
- android--设置TextView部分文字的颜色和背景(高亮显示)
- [IMX6Q][Android6.0.1_r3]之系统屏幕显示默认设置更改
- 最新历史版本 :android--设置TextView部分文字的颜色和背景(高亮显示)