Friday, June 17, 2011

[android-developers] Conflicts between gestures and touch events

Hi everyone, Im developing an accessibility layout where every widget
inside may have an accessible behaviour.

Now, for example, a. Button, can be focused by trackball or by touch
events. Once its focused, it remaks its bounds as iOS does and waits
for another tap to perform its action. There are three different
containers witch behaves slightly different.

The problem is that for that devices without trackball, i need to
implement a way to navigate across the layout widgets.
iOS does it by gestures so i tried to put a gestures overlay and it
works fine when recognizing the defined gestures I recorded. The
problem is that I think there is no chance to put it all togheter as
everytime a gesture starts over a widget, it takes its focus. Is any
way to avoid this behaviour? I just want to discern between touches
and gestures but the MotionEvent object passed down to the children
views its either used (so the view gains focus) or consumed (then
never gain focus, even if there is no gesture at all)

I have far experience on Android and I really think that is not
possible. Any guru can help a bit? I would provide some code if
needed.

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment