开发者

How to Suport Multi Touch on My Android Application?

I'm having some difficulties on my android application. I have some chronometers (4 or 5) and I need to be able to touch more than one of then and record the time. eg.: When i touch two of the chronometers both of then should display the same time.

I tried putting the chronometers on a listview, and also as table rows in a tablelayout. On both situations I'm able to record times if a touch chronometers one at a time but when i touch two at the same time only one of then recordes the event.

I don't know if it's necessary but i have this on my manifest file:

<uses-feature 
    android:name="android.hardware.touchscreen.multitouch.jazzhand"
    and开发者_高级运维roid:required="false"
/> 

Any one knows how to fix it? Do I have to set some configuration allowing multitouch for my aplication? (I'm working on android 3.1, if there's a solution that works only on 3.x i'm ok with that)

Thanks a lot!


I am new to multi-touch as well. I was direct to check out the link krio provided and I also found this link helpful in understanding it:

http://android-developers.blogspot.com/2010/06/making-sense-of-multitouch.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜