It works because returning true signals that the event has been consumed. That's the signal for the parent ViewGroup to set this view as a "target". As a result, the "pointer" multitouch events are delivered to this target view. I think, the corresponding code is in ViewGroup.dispatchTouchEvent. You might want to take a look...
On 2 Dez., 00:05, John Goche <johngoch...@googlemail.com> wrote: > On Thu, Dec 1, 2011 at 8:17 PM, al <achim.leub...@googlemail.com> wrote: > > OK, your yamtt results mean that your device supports multitouch, but > > only two simultanious touch points. For your purpose, that should be > > enough. > > > I might be wrong, but do you return true as the methods result? If > > not, do so. > > Thanks, I was returning super.onTouchEvent(event); > > That made the whole difference, it now works. So somehow > super.onTouchEvent(event) was consuming my event when > it was not supposed to? Why does this solution work? > > Thanks, > > 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