2

Possible Duplicate:
Question mark (?) in XML attributes for Android

I have seen ? in android style declarations. For example...

 <Button
     android:id="@+id/gems_button"
     style="?buttonBarButtonStyle"
     android:layout_width="0dp"
     android:layout_height="wrap_content"
     android:layout_weight="1"
     android:text="@string/gems_button" />

What does the ? signify in the line style="?buttonBarButtonStyle"

Community
  • 1
  • 1
neo108
  • 5,156
  • 3
  • 27
  • 41

1 Answers1

4

It's a reference to style attributes

A style attribute resource allows you to reference the value of an attribute in the currently-applied theme.

Aaron He
  • 5,509
  • 3
  • 34
  • 44