thanks Studio, i finally did it using this guide:

http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2-part-6-implementing-the-pinch-zoom-gesture/1847


On 6 oct, 16:37, Studio LFP <studio....@gmail.com> wrote:
> There is nothing in that example that says you have to be using a canvas.
>
> Any view that is a child of View will work. GLSurfaceView is a child of view
> and will work also.
>
> Override the onTouchEvent of the GLSurfaceView and follow the example in
> that respect.
>
> The scaling is just a number that goes up when they get farther apart and
> lower as they get closer.  If you aren't able to use this number, then you
> won't be able to use multi-touch pinch-to-zoom functionality. There is even
> a function that calculates the mid point for you (getFocusX, getFocusY), it
> doesn't get much simpler than that.
>
> Some things you just have to work through because that's how they are done.
> Refusing to use advice (especially from the creators of Android who would
> know best) won't help you figure out how to use the feature any faster.
>
> Steven
> Studio LFPhttp://www.studio-lfp.com
>
>
>
>
>
>
>
> On Wednesday, October 5, 2011 10:16:54 AM UTC-5, saex wrote:
>
> > i'm not using canvas, and these strange scale factors, i can't apply
> > these system into my code
>
> > On 5 oct, 16:43, Studio LFP <studi...@gmail.com> wrote:
> > > Not quite understanding the hard part, it's pretty step by step.
>
> > > GLSurfaceView is just another view and can accept touch just like
> > anything
> > > else. You don't have to make a new subclass like he did, just use the
> > touch
> > > code to catch the multi-touch on the GLSurfaceView.
>
> > > Steven
> > > Studio LFPhttp://www.studio-lfp.com
>
> > > On Wednesday, October 5, 2011 7:01:16 AM UTC-5, saex wrote:
>
> > > > too hardly explained and bad examples for this case
>
> > > > code examples that does this will be apreciated
>
> > > > On 4 oct, 17:54, Studio LFP <stud...@gmail.com> wrote:
> > > > > Check this post out:
>
> >http://android-developers.blogspot.com/2010/06/making-sense-of-multit...
>
> > > > > Information from the source, the best kind.
>
> > > > > Steven
> > > > > Studio LFPhttp://www.studio-lfp.com

-- 
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

Reply via email to