You should use the selectors for a list item and whenever you want to
set a selection, call the listview's method for that. Doing it on
touch, has a few bad effects, which are difficult to handle, or
atleast you would need a few lines of code to handle specific
gestures.

On Oct 20, 10:41 am, "Hendrik Greving" <fourhend...@gmail.com> wrote:
> I have a ListView and a database cursor which I set with setListAdapter. The
> adapter is a SimpleCursorAdapter which takes a xml description for the
> ListView items. How can I set a onTouch handler for every item, in order to
> highlight when it's being touched?

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

Reply via email to