offsetLocation() is called as the event is dispatched down the hierarchy.
You calling it one more time isn't going to be a big deal. :)

On Thu, Jan 22, 2009 at 12:19 PM, skink <[email protected]> wrote:

>
>
>
> skink wrote:
> > On 22 Sty, 08:12, skink <[email protected]> wrote:
> > > hi,
> > >
> > > i saw that history is appended
> > > via addBatch method but failed on finding who/where/when/why call it.
> >
> > seems i didn't grep good enough...
> >
> > now i found that addBatch is called from
> > com.android.server.InputDevice but still it doesn't help me much since
> > it's not so easy to figure out the whole context it's called from.
>
> or maybe it would be better, instead of using offsetLocation, use one
> of MotionEvent.obtain() method?
>
> i need to change X/Y coords in event when using GestureDetector and
> dont know whether to offsetLocation() or create new event by obtain()
> ing it.
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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