?机器人:ATTR / selectableItemBackground [英] ?android:attr/selectableItemBackground
问题描述
写我的Android应用程序,当我用
when writing my android app i used
android:background="?android:attr/selectableItemBackground"
我试图寻找这将是包含源attr.xml文件,但我无法找到它。任何想法,请在哪里可以找到它。我发现在一个attr.xml
I tried looking for attr.xml file that would be containing the source but i could not find it. Any ideas please on where i can find it. I found one attr.xml in
C:\ Program Files文件(x86)的\机器人\ Android的SDK \平台\ Android为13 \ DATA \水库\值
C:\Program Files (x86)\Android\android-sdk\platforms\android-13\data\res\values
,但它没有上述的属性。谁能引领我在哪儿能找到与上面的属性的XML资源?
but it did not have the attribute mentioned above. Can anyone lead me where I can find the xml resource with the attribute above?
推荐答案
我没那么与Android经历,但我认为你可以找到你要找的东西在的数据\水库\值\主题的.xml的。
I'm not that experienced with Android, but I think you can find what you're looking for in "data\res\values\themes.xml".
如果您在该文件中的selectableItemBackground搜索的,你应该找到以下内容:
If you search in that file for "selectableItemBackground", you should find the following:
<style name="Theme">
...
<item name="selectableItemBackground">@android:drawable/item_background</item>
...
</style>
您还会找到的 Theme.Holo.Light 的相应条目和 Theme.Holo 的。在*item_background*,*item_background_holo_light*和*item_background_holo_dark*可绘制将设在数据\水库\绘制的文件夹。
You'll also find respective entries for Theme.Holo.Light and Theme.Holo. The *"item_background"*, *"item_background_holo_light"*, and *"item_background_holo_dark"* drawables would be located in the "data\res\drawable" folder.
希望帮助!
这篇关于?机器人:ATTR / selectableItemBackground的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!