내 TextView
로 정의하는 경우 :TextView의 스타일과 android : textAppearance 속성의 차이점은 무엇입니까?
<TextView
style="@android:style/TextAppearance.DeviceDefault.Large"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!" />
이 같은 일을 같이 기본적으로 :
<TextView
android:textAppearance="@android:style/TextAppearance.DeviceDefault.Large"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!" />
내가 style
는 광범위한 규정의 어떤 종류 (것을 알고 즉, 하나가 설정할 수 없습니다 모든 속성 android:textAppearance
)하지만 질문이 제기됩니다. 왜 귀찮게합니까? style
이상의 android:textAppearance
을 사용하면 어떤 이점이 있습니까?