Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the ? in Android XML mean [duplicate]

Tags:

android

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.

like image 261
user123321 Avatar asked Nov 18 '11 02:11

user123321


2 Answers

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.

like image 187
lc2817 Avatar answered Nov 11 '22 16:11

lc2817


It is a reference to style attribute. Check this reference:

References To Theme Attributes

like image 4
Kash Avatar answered Nov 11 '22 15:11

Kash