android:textAppearance设置文字外观
16lz
2021-01-23
xml布局里面设置文字的外观:
如“android:textAppearance=“?android:attr/textAppearanceLargeInverse”这里引用的是系统自带的一个外观,
?表示系统是否有这种外观,否则使用默认的外观。
可设置的值如下:
textAppearanceButton/
textAppearanceInverse/
textAppearanceLarge/
textAppearanceLargeInverse/
textAppearanceMedium/
textAppearanceSmallInverse/
代码中加下划线
textView.getPaint().setFlags(Paint. UNDERLINE_TEXT_FLAG ); //下划线
textView.getPaint().setAntiAlias(true);//抗锯齿
更多相关文章
- 2011.09.26(3)——— android sample之Notepad(带下划线的TestView
- Android学习——TextView 设置中划线 下划线
- android中RecyclerView添加下划线
- android 设置中划线 下划线等
- Android之系统自带的文字外观设置及实际显示效果图 android:text
- android edittext 去边框 去下划线
- RadioButton 带下划线切换的案例
- Swing中引入Android的NinePatch技术,让Swing拥有Android的外观定