tags:

views:

214

answers:

1

Can anyone explain the question mark means in Android XML attributes?

<TextView    
    style="?android:attr/windowTitleStyle"
    More attributes
/>
+6  A: 

The question mark means it's a reference to a resource value in the currently applied theme. See the linuxtopia Android Dev Guide or the android.com Dev Guide for more about it.

jball
I think it would be better to point your second link to: http://developer.android.com/guide/topics/resources/resources-i18n.html#ReferencesToThemeAttributes
Casebash
Thanks, that is a better link - updated.
jball