Hi, I have a class extending ListActivity, and I want to catch
touchevent on it so I override dispatchTouchEvent.

@Override
public boolean dispatchTouchEvent(MotionEvent ev) {
  ...
}

And since it's a ListActivity, of cource I want to override the
onListItemClick(), too:
@Override
protected void onListItemClick(ListView l, View v, int position, long
id) {
  ...
}

But now I find that the dispatchTouchEvent() will intercept ALL touch
event on the activity, so onListItemClick() will never be called.
I tried
 super.dispatchTouchEvent(ev);
but it does not work.

Anyone has any idea for this? Thanks!

--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to