Hello,

I have an activity X with a ListView with several rows colored A. When the
user
touches a row in the listview I need the row to turn into color B
immediately just
to let the user see that the row is being touched. Then, if the user keeps
holding
the finger for a long click on the listview item, the row color must turn
into color C
and a new activity X must be started from there. If Instead of holding down
the
finger on the item the user releases it a click must be generated in which
case
the row must simply change color to color C. If the user has touched a row
colored A thus changing it to color B but moves away with the finger without
clicking, i.e. the user scrolls or drags the finger to another row, then the
row
must revert to color A.

I am having trouble with the last operation.

Any ideas? Any help would be greatly appreciated.

RIght now I have set up for each row an OnClickListener,
OnLongClickListener,
and OnTouchListener for each row. Each listener is passed a row position as
an
argument.

However I am having trouble with the last bit. While it works on the
emulator it does
not work on the device when I drag the finger I see flicker...

Thanks for your help,

John Goche

-- 
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