What is the difference between "? Android: attr /" and "? Attr /" in the XML schema file of Android?

What is the difference between ?android:attr/and ?attr/in android layout XML file? Which one should be used in different situations?

+4
source share
2 answers

1.? Atr /

Defines and refers to the value of the attribute that you defined yourself in your application.

2.? Android: atr /

Refers to attribute values ​​that are already available in the built-in android. More specific,? implies an additional level of indirection. Think of it as abandoning an attribute in order to retrieve the resource that it points to rather than refer to the attribute itself.

+4

? /

  • , .

Android: /

  • , Android.
0

All Articles