15

when writing my android app i used

android:background="?android:attr/selectableItemBackground"

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\android-sdk\platforms\android-13\data\res\values

but it did not have the attribute mentioned above. Can anyone lead me where I can find the xml resource with the attribute above?

Dirk Jäckel
  • 2,979
  • 3
  • 29
  • 47
Maxwell Weru
  • 453
  • 1
  • 3
  • 9

1 Answers1

26

I'm not that experienced with Android, but I think you can find what you're looking for in "data\res\values\themes.xml".

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>

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.

Hope that helps!

Gautam
  • 4,006
  • 3
  • 32
  • 37