When the user presses a ListView item (android:state_pressed=”true”) it flashes a shade of yellow (or you can press and hold).
What drawable is this? I’ve created my own selector because I want my own ListView item color , but I lose the pressed color.
There’s an Android doc about skinning buttons that references #ffff0000, but this produces red.
Does anyone know what it is and how to reference it?
The default system resources can be found in
<android-sdk>/platforms/android-<version>/data/res. In particular, the list selector is defined indrawable/list_selector_background.xml:The drawable that is shown on a press,
list_selector_background_transition, is not a single color but two 9-patch images, a yellow and a white one, with an animated transition between them.