?android:attr/selectableItemBackground [英] ?android:attr/selectableItemBackground
问题描述
在编写我使用的 android 应用程序时
when writing my android app i used
android:background="?android:attr/selectableItemBackground"
我尝试寻找包含源代码的 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)Androidandroid-sdkplatformsandroid-13data esvalues
C:Program Files (x86)Androidandroid-sdkplatformsandroid-13data esvalues
但是它没有上面提到的属性.谁能告诉我在哪里可以找到具有上述属性的 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 不是很有经验,但我认为你可以在 "data esvalues hemes 中找到你想要的东西.xml".
I'm not that experienced with Android, but I think you can find what you're looking for in "data esvalues hemes.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"* 可绘制对象将位于 "data esdrawable" 文件夹中.
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 esdrawable" folder.
希望有帮助!
这篇关于?android:attr/selectableItemBackground的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!