android - Getting the Listview default clicked color, depending on the Device -


in android application, use listview , linear layout on wich user can click.

of course, had set background of linearlayout xml file stated pressed, selected defined:

 myview.setbackgrounddrawable(  getdrawable(android.r.drawable.list_selector_background)); 

so no problem set drawable transparent when normal use , orange when clicked.

my problem on galaxy s , other customized phone (sense ui) color of listview clicked blue or green!

http://img.skitch.com/20100928-fuq6ie4uxipguxug9yyinwher.jpg alt text

so need pick color set background of linearlayout. don't want mix orange , blue, or orange , green user!

where can color??? woule helpfull!

just found answer:

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

Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -