新用法: 
android:textAppearance="@android:style/TextAppearance.Small"

 

旧用法:

android:textAppearance="?android:attr/textAppearanceLargeInverse"

 

xml布局里面设置文字的外观:

如“android:textAppearance=“?android:attr/textAppearanceLargeInverse”这里引用的是系统自带的一个外观,

?表示系统是否有这种外观,否则使用默认的外观。

可设置的值如下:

textAppearanceButton/  Android之系统自带的文字外观设置

textAppearanceInverse/  Android之系统自带的文字外观设置

textAppearanceLarge/  Android之系统自带的文字外观设置

textAppearanceLargeInverse/ Android之系统自带的文字外观设置


textAppearanceMedium/    Android之系统自带的文字外观设置

textAppearanceSmallInverse/ Android之系统自带的文字外观设置

textAppearanceMediumInverse/ Android之系统自带的文字外观设置

相关文章:

  • 2021-09-02
  • 2021-11-27
  • 2022-02-09
  • 2021-12-06
  • 2021-08-02
  • 2021-11-18
猜你喜欢
  • 2022-12-23
  • 2021-09-09
  • 2021-12-18
  • 2021-11-26
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案