【问题标题】:How do I find what ?android:attr/listChoiceIndicatorSingle points to?如何找到 ?android:attr/listChoiceIndicatorSingle 指向的内容?
【发布时间】:2013-09-15 06:24:29
【问题描述】:

我有

android:button="?android:attr/listChoiceIndicatorSingle"

关于 CheckBox 的布局。我按 F3 带我进入定义,它只是说

    <!-- Drawable to use for single choice indicators. -->
    <attr name="listChoiceIndicatorSingle" format="reference" />

android-sdk/platforms/android-17/data/res/values/attrs.xml。我搜索了整个文件,这是唯一的一次。

如何找到它引用的可绘制对象?

【问题讨论】:

  • 你想做什么?我没有得到你的问题。您想为按钮设置图像吗?

标签: android android-theme


【解决方案1】:

属性的值在theme.xml 中定义。检查 SDK 中的“theme.xml”。 就我而言,它是这样定义的:

<item name="listChoiceIndicatorSingle">@android:drawable/btn_radio_holo_dark</item>

【讨论】:

  • 谢谢。我能够找到实际的 PNG 可绘制对象并将它们复制到我的应用程序中,使用不同的颜色。
猜你喜欢
  • 1970-01-01
  • 2021-02-10
  • 2020-01-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-09-17
  • 1970-01-01
  • 2011-10-20
相关资源
最近更新 更多