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

属性:android:textAppearance    新、旧两种设置方法都可以实现

 

 

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

 

旧用法:

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

 

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

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

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

可设置的值如下:

textAppearanceButton/  

textAppearanceInverse/  

textAppearanceLarge/  

textAppearanceLargeInverse/ 


textAppearanceMedium/    

textAppearanceSmallInverse/ 

textAppearanceMediumInverse/ 
原文地址:https://www.cnblogs.com/error404/p/2206999.html