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

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

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -