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

更多相关文章

  1. Android TextView使用权重时文字无法居中问题
  2. 安卓设置文字自动滚动
  3. android文字阴影效果
  4. Android Vertical TextView 文字竖排
  5. 文字跑马灯
  6. android 带文字的ImageButton
  7. 把TextView中的文字添加阴影效果及Style的使用
  8. Android控制文字水平间距android:letterSpacing

随机推荐

  1. 【Android】 点击空白处隐藏(收起)键盘
  2. Android中日期时间格式转换
  3. android集成flutter
  4. Android(安卓)studio ndk 开发轻松两步就
  5. Android Repo 超时的解决方法
  6. 使用React-navigation时候 Android物理返
  7. 【Android】不知道的 setLayoutParams
  8. SeekBar进度条的使用
  9. Android常用开源框架分享
  10. Android获取到inflate服务的方式及inflat