Are the Steema Charts now available for Mono for Android? I am looking forward to it.
Von: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] Im Auftrag von Narcís Calvet Gesendet: Donnerstag, 19. Mai 2011 13:41 An: 'Discussions related to Mono for Android' Betreff: Re: [mono-android] pinch zoom Hi Craig, Re.: 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). Actually Im porting a Java code snippet from https://market.android.com/details?id=com.steema.teechart.android. Re.: 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 :-( Yes, thanks, found that example too. Re.: 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. PointerCount was the key! Using it I get pinch zoom code being reached. I think Ill need to tweak it a little bit to work properly ;-). Thank you very much! Narcís Calvet Steema Software http://www.steema.com <http://www.steema.com/> http://twitter.com/SteemaSoftware https://www.facebook.com/SteemaSoftware From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Craig Dunn Sent: dijous, 19 / maig / 2011 13:15 To: Discussions related to Mono for Android Subject: Re: [mono-android] pinch zoom 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 Im somewhat lost about where to look at for support. Should I write here? StackOverflow? My question is that Im 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://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