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);//抗锯齿

更多相关文章

  1. android edittext 去边框 去下划线
  2. RadioButton 带下划线切换的案例
  3. Swing中引入Android的NinePatch技术,让Swing拥有Android的外观定
  4. 隐藏android中EditText的下划线
  5. Android TextView 设置中划线 下划线
  6. android 中隐藏EditText的下划线方法
  7. Android深度定制化TabLayout:圆角,渐变色,背景边框,圆角渐变下划线,基
  8. android select选择器 checkbox改外观,button按下状态
  9. Android超链接去下划线--Android学习笔记6-4

随机推荐

  1. Android(安卓)kotlin:json自动生成bean
  2. MediaRecorder音视频框架
  3. Android(安卓)Device Monitor结构和用法
  4. android JNI 入门
  5. Android(安卓)定时器实现的几种方式和rem
  6. Android p28使用http请求报错not permitt
  7. Android 使用WakeLock
  8. AndroidStudio下载安装教程(图文教程)
  9. Android获取网络连接状态(3G/Wifi)及调用
  10. 【Android基础学习】Android使用fitsSyst