What's the difference between "?android:" and "@android:" in an android layout xml file? What's the difference between "?android:" and "@android:" in an android layout xml file? android android

What's the difference between "?android:" and "@android:" in an android layout xml file?


Prefixing the ID with a question mark indicates that you want to access a style attribute that's defined in a style theme, rather than hard-coding the attribute.

See "Referencing Style Attributes" here: accessing-resources