How can something so simple be so hard to achieve.

I have a custom list extending an ArrayAdapter for rendering the list
items. I want the items on my list to have a white background color,
and the selected item to have a different background color. I am
unable to intercept the onItemSelected and onNothingSelected (in the
ListActivity??? In the class extending ArrayAdapter???). I have looked
at Mark Murphys examples to no avail.

The strategy so far: Setting TextView to
android:background="#FFFFFF" (defined in row.xml being inflated in
getView) (ok, the list background is white). But select a list item,
and nothing happens. android:listSelector does nothing (tried on both
TextView and on the ListView itself). No other hints or tricks in the
forums provide a solution for this.

It's nothing fancy. I just want the user to be able to see a white
list and see the result of the interaction.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to