Default selector background in Clickable Views

Matroska picture Matroska · Feb 12, 2012 · Viewed 65.1k times · Source

I have some clickable views and I want to set the default available background that is present on list click (in ICS is a blue color). I have tried putting as background this:

android:background="@android:drawable/list_selector_background"

but it is not the default blue I have by default (the one I used is orange). What is the drawable used by default on android as click selector?

Thanks

Answer

Bogdan Balan picture Bogdan Balan · Feb 29, 2012

This works for me:

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