अगर मैं अपने TextView
के रूप में परिभाषित करते हैं: सभी विशेषताओंटेक्स्टव्यू की शैली और एंड्रॉइड के बीच क्या अंतर है: textAppearance विशेषताएँ?
<TextView
android:textAppearance="@android:style/TextAppearance.DeviceDefault.Large"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!" />
मैं जानता हूँ कि style
व्यापक क्वालीफायर के कुछ प्रकार (है कि यानी एक सेट नहीं कर सकता:
<TextView
style="@android:style/TextAppearance.DeviceDefault.Large"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!" />
यह एक ही कर के रूप में मूल रूप से है android:textAppearance
में) लेकिन फिर यह सवाल उठाता है: परेशान क्यों? style
से अधिक का उपयोग करने का कोई फायदा है?