Question mark (?) in XML attributes for Android

Casebash picture Casebash · Apr 29, 2010 · Viewed 37.1k times · Source

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

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

Answer

jball picture jball · Apr 29, 2010

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.

\? escapes the question mark.