Android之系统自带的文字外观设置及实际显示效果图 android:textAppearance
16lz
2021-01-23
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 edittext 去边框 去下划线
- RadioButton 带下划线切换的案例
- Swing中引入Android的NinePatch技术,让Swing拥有Android的外观定
- 隐藏android中EditText的下划线
- Android TextView 设置中划线 下划线
- android 中隐藏EditText的下划线方法
- Android深度定制化TabLayout:圆角,渐变色,背景边框,圆角渐变下划线,基
- android select选择器 checkbox改外观,button按下状态
- Android超链接去下划线--Android学习笔记6-4