Reputation: 47
Some XML attributes need to start its value with a question mark (?
) and I just wondering how can I know these attributes, particularly these attributes, aren't shown when I press on ( CTRL + Space ) to show suggested attributes
examples of these attributes:
android:divider="?android:dividerHorizontal"
android:textAppearance="?android:textAppearanceLarge"
Upvotes: 1
Views: 851
Reputation: 76639
the ?
is for referencing style attributes; the documentation explains it:
To reference a style attribute, the name syntax is almost identical to the normal resource format, but instead of the at-symbol (
@
), use a question-mark (?
), and the resource type portion is optional.
?[<package_name>:][<resource_type>/]<resource_name>
Upvotes: 1