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.
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
Is pinch zoom functionality in Google map is possible, i have made several search but didn't get any solution, please give your view.
Or need to write the api for implementing these functionality.
Are you using ScaleGestureDetector to achieve Pinch and Zoom?
http://developer.android.com/reference/android/view/ScaleGestureDetector.html
Refer to this blog post on how to leverage multi touch in Android
http://android-developers.blogspot.com/2010/06/making-sense-of-multitouch.html
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
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
I'm displaying an image on full screen now i want to zoom it in or out.
Any one guide on how I can implement multi touch image zooming?
I am using the 2.1 sdk version.
There is the possibility to use a webview to display a local file. The Webview has integrated multitouch zooming. Have a look at my question regarding this topic.
I have a working implementation for 2.1+
WebView solution caused problems for me on 4.0.x (lot's of weird white spaces appearing)
https://github.com/jasonpolites/gesture-imageview
Might be useful for someone...
A recent post on the Android Developers Blog includes an example that does exactly what you ask. Unfortunately, it relies upon ScaleGestureDetecter which makes its first appearance in Froyo.
Have you tried using the intent "android.intent.action.VIEW" and letting the phone's built in image viewer display your image? It will probably use multi-touch controls if the phone supports it.
http://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW
Regarding gesture-imageview lib:
https://github.com/jasonpolites/gesture-imageview
it's in fact useful, but unfortunatelly it has some bugs, like:
https://github.com/jasonpolites/gesture-imageview/issues/37
Anyway, good lib to try. It solved my usecase.