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!
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
Post a Comment