android:textAppearance 是 Android 系统自带的设置外观的方法 这个方法开发中几乎用不到,大家了解下即可
为啥说用不到呢,因为使用了textAppearance 也就是默认了当前的字体的,使用系统自己的,文本颜色、字体、大小和样式。
常见的样式大致有如下几种
textAppearanceInverse
textAppearanceLarge
textAppearanceLargeInverse
textAppearanceMedium
textAppearanceSmallInverse
textAppearanceMediumInverse
textAppearanceSmall
使用方法如下啊
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Android 系统自带外观"
android:textAppearance="?android:attr/textAppearanceLarge"/>