2

可能重复:
Android 的 XML 属性中的问号 (?)

?我在 android 风格的声明中见过。例如...

 <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" />

?行中的意思是什么style="?buttonBarButtonStyle"

4

1 回答 1

4

它是对样式属性的引用

样式属性资源允许您引用当前应用主题中的属性值。

于 2013-01-31T00:15:51.770 回答