I have to zoom in/zoom out and pan image using mutltitouch in android.I have followed motion event for two fingers but facing problem when multiple fingers came into play with screen.I don't know how to get decision in case of movement of 4 or five fingers that whether user want zoom or pan .i have found library from
How to perform zoom in/out ,rotation together in Android
I found a tutorial using this library but didn't found any help to download this android-multitouch-controller library so i can use it as in tutorial it gives errors since library is not there.
Kindly guide me if any one ever use this library or is there any other way to decide mode in case of multitouch.
Thanks
I recently wrote a blog on getting started with this library, if it still helps: http://paulbourke.blogspot.com/2011/10/writing-multitouch-applications-on.html
Related
I am implementing a concept to show an image in 360 view such as available in Facebook Android Application.
For that, I have explore so many tutorials & Github repositories.
Please help any work around If anybody has done in Android.
Thanks.
The links I have explored till now.
ProgrammedImageView
Panorama360
MD360Player4Android
panorama-view
I'm developing an app using osmdroid (3.0.8).
When I zoom using two fingers in and out, the zoom starts from the center of the map, not from the middle of the two fingers (using MapView.setMultiTouchControls(true);). I've tried to implement the pinch (pinch) but with bad results.
I've read other similar questions but without finding a good solution.
Note: I MUST use OSM, and not other solutions
Osmdroid 3.0.10 includes support for zooming at the location you pinched at.
The samples also include a two-finger rotation gesture overlay if that is something you are interested in trying.
Just to clearify....I dont think I can use google maps unless it will automatically scale custom Images I need to use when the map is zoomed.
Im trying to create my own custom view to use to display images of maps that will be zoomable and also allow the user to leave markers where they touch....maybe via longtouch with a single press or if I can manage it just via single touch.
How ever Im having a little trouble trying to figure where to start. So far I have a couple different implementations of zoom-able imageviews which work fine but I havent been able to come up with the math to allow the markers to move to their correct positions relative to the zoom level when a user pinches and zooms.
I have come across a similar solution to what I am trying to do on here before but of course now that Im looking for it, its no where to be found.
So my question is how would I go about mathematically figuring out where to draw my markers according to zoom level? Does any one know of any libraries or opensource projects that do such a thing already? Any help on the matter would be greatly appreciated.
I am developing an application in Android in which I'm using google map using the Javascript V3 library with Phonegap. It works fine for me until I noticed that map is zooming in on touch event but couldn't able to zoom out when I tried for number of times.
I'll appreciate if someone suggest me how I can get the pinch zoom in and out without using the default zoom controls of Google Maps?
Unfortunately there is no built-in function for this (not yet anyway), so in order to make it work you will have to create your own custom control for this action. This means capturing the touch event and zooming according to the gesture.
To go into a little more details on this, have a control over the map canvas, and in it capture the touch events.
Your second option since you are building for Android native is to use google maps from android (however this is java not javascript). You can find a basic tutorial on this here: http://mobiforge.com/developing/story/using-google-maps-android
Hope this helps,
Vlad
Hi All
I am working on an android app where i need to implement an image zooming functionality(zoom will work by moving fingers apart and bringing them together will zoom out the image).This is just like the way iphone does.
Could anyone please let me know is this possible?,Does Android provide any inbuilt support in SDK for doing this?.Is there any kind of tutorial for doing this?.
Android default browser supports pinch zoom?
ya pinch zoom is possible in android but after 2.2 version,and also many hardware doesn't support this feature.
but if you want to implement you can take look here..
http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2-part-6-implementing-the-pinch-zoom-gesture/1847
i think it will help you.