Possible Duplicate:
Question mark (?) in XML attributes for Android
<TextView android:id="@+android:id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceLarge"
android:ellipsize="marquee"
android:fadingEdge="horizontal" />
what does "?android:attr/textAppearanceLarge" do? Does it have a name? Why doesn't it use an "@" instead? Can I use this syntax in my own code? Where can I read more about this? Since I don't know what it is, it's kind of hard to find more information about it. Any guidance would be greatly appreciated.
This question has already been asked on stackoverflow. The answer given was:
The question mark means it's a reference to a resource value in the currently applied theme.
Look here for more details.
It is a reference to style attribute. Check this reference:
References To Theme Attributes
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With