Why isn鈥檛 multi-touch wor king for imagebuttons?

by niko20 » Wed, 05 May 2010 01:42:31 GMT

Sponsored Links

No, it's because the android team decided to implement MultiTouch in a
way that it only can be used on one "View". For example, ImageButtons
are views. Each ImageButton is a seperate "View" object. The Android
multitouch does not just map touches to multiple views like that
(which I think it should, but the android team does not). Instead you
end up having to create a View yourself, and drawing the three buttons
yourself, since multitouch comes to a View as additional touch
coordinates. In other words, you can only use multitouch "per view".
It can't spread across multiple views. You basically need to create
one big view object that takes up most of the screen and then draw the
buttons yourself, and then handle the multitouch messages passed to
that view.

Unless there is an easier way that I know of, but I dont think there
is. IMO how they "implemented" multitouch is too hackish, and should
have been transparent to developers by the system automatically
posting messages to each view that was being touched, instead, you
have to rewrite the apps completely to handle it.



Why isn鈥檛 multi-touch wor king for imagebuttons?

by Bob Kerns » Fri, 07 May 2010 23:05:14 GMT

 What about using a TouchDelegate to examine the touches first, and
forward them as separate events?

I haven't tried it, or even thought about it for more than two
minutes, but...

> >

Sponsored Links

Other Threads

1. Custom GridView becomes Scroll-less


I have extended a GridView and Override onTouchEven() function to
achieve onTouch and onLongTouch functionality for GridView items. But
I found the extended GridView is no longer scrollable when I fling it
or try to move up or down.

Suppose it should keep is scroll functionality if I don't Overried it.
Can any one let me know what I am missing here and what I have to do
for keeping other functions as it is in a Gridview.

Thanks & Kind regards,


2. fetch all the miss call


  I need to fetch all the miss call, so may i know in which database i
can fetch the miss call list.

can any one tell me the corresponding Query for fetching the all the
miss call



3. Want to Diskusi ; about cubit2an

4. how to obtain the default font size

5. SIP using bluetooth

6. tslib patch causing Android boot to fail

7. Help Android porting to imx28