Are you porting a specific example from Java (if so, maybe posting the link you're looking at might help others to put your question into context).
I managed to get this example working in c#/MonoDroid http://stackoverflow.com/questions/2537238/how-can-i-get-zoom-functionality-for-images which is actually this code http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2-part-6-implementing-the-pinch-zoom-gesture/1847 (which is from a book "Hello, Android") unfortunately the licence says *"Copyrights apply to this source code. You may use the source code in your own projects, however the source code may not be used to create training material, courses, books, articles, and the like."* which suggests to me that I can't share my port :-( I don't think it uses e.Size though. The class EclairMotionEvent uses @event.PointerCount if that helps. You can probably trace it through the Java version to figure out what's going on. Here is a 'panning' example that I *can* share https://gist.github.com/848571 in case that is of use. Maybe it can be a starting point for you. It only does panning though, not zooming; and doesn't include the two 'helper' classes WrapMotionEvent and EclairMotionEvent which i think are key to tracking the two fingers. Good luck! Craig @conceptdev On Thu, May 19, 2011 at 8:06 PM, Narcís Calvet <nar...@steema.com> wrote: > Hello, > > > > After this week events I’m somewhat lost about where to look at for > support. Should I write here? StackOverflow? > > > > My question is that I’m trying to implement pinch zoom in a custom control > overriding OnTouchEvent. There, when e.Action == MotionEventActions.Move I > check if e.Size > 1 to see if more than one fingers is moving on the screen. > However Size always returns zero. AFAIK this works fine in Java for Android. > Is this a bug or should I use a different argument? > > > > Thanks in advance. > > > > > > Best Regards, > > Narcís Calvet > > Steema Software > > http://www.steema.com > > http://twitter.com/SteemaSoftware > > https://www.facebook.com/SteemaSoftware > > > > > > > > _______________________________________________ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > >
_______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid