Questions tagged [pinch]

237 questions
9
votes
5 answers

How I can implement zoom in Fresco Library?

I'm using Fresco to visualize images from the assets folder in a view. My problem is that by default the class com.facebook.drawee.view.SimpleDraweeView doesn't have a zoom/pinch method. Is there any property or something in the XML to enable this,…
Víctor Martín
  • 3,352
  • 7
  • 48
  • 94
8
votes
2 answers

Pan and 2 Finger Pinch simultaneous iOS -at the same time-

2 Gesture recognizer: UIPinchGestureRecognizer *twoFingerPinch = [[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(handlePinch:)]; [croppper addGestureRecognizer:twoFingerPinch]; UIPanGestureRecognizer *PanRecognizer =…
Phil
  • 341
  • 6
  • 19
8
votes
1 answer

Set UILabel font size according to its frame size?

I have an application that allow user to use the pinch gesture for scaling the label How can I change the font size according to the new frame size so that the font just fit in the frame rectangle? My current step is only set the label with new…
Hanon
  • 3,917
  • 2
  • 25
  • 29
8
votes
4 answers

Pinch Zoom in webview [Android]

On my website, which is loaded in the webview, there is a map. There are also java scripts that detects double tap for zoom, dragging etc. But is it possible to have a javascript that detects the use of pinch zoom ? there are several examples of it…
Roskvist
  • 1,030
  • 3
  • 14
  • 24
8
votes
1 answer

How to implement pinch-zoom feature for camera preview

i tried pinch-zoom feature for image from this.it works fine but how can i implement pinch-zoom feature for camera preview. Please help me. Thanks in advance...
ultimate
  • 717
  • 2
  • 10
  • 20
8
votes
2 answers

How get webview scale in Android 4

WebView.getScale() is deprecated (but still usable) The recommended way to get scale for webview is to use WebViewClient.onScaleChanged() http://developer.android.com/reference/android/webkit/WebViewClient.html#onScaleChanged(android.webkit.WebView,…
Andriy Kopachevskyy
  • 7,276
  • 10
  • 47
  • 56
7
votes
2 answers

Pinch Zoom in android for an imageview?

I have one requirement in which i have to zoom in and zoom out images on pinch.. Please if anyone can suggest me pinch zoom functionality for Imageview.????
Kruti Mevada
  • 517
  • 5
  • 7
  • 21
7
votes
1 answer

iPhone google maps v3 pans after pinch zoom

I have a problem developing a web application for iPhone. When I visit a simple example like http://code.google.com/intl/sv-SE/apis/maps/documentation/javascript/examples/map-simple.html in an iPhone and do pinch zoom the map pans when I release the…
tirithen
  • 3,219
  • 11
  • 41
  • 65
7
votes
1 answer

How to do iPad Photos app pinch to expand

I don't think this has been asked before on this site, but I might be wrong. Does anyone know the basics of how to get that whole effect with the iPad Photos app? Basically, pinching a stack of photos lets you have a "peek" at the photos in that…
indragie
  • 18,002
  • 16
  • 95
  • 164
7
votes
4 answers

How can I use pinch zoom(UIPinchGestureRecognizer) to change width of a UITextView?

I can get the UIPinchGestureRecognizer handler to work with scaling an object but I don't want to scale I want to change the size. For example I have a UITextView and I've attached a UIPinchGestureRecognizer gesture to it and if the user pinches I…
Ryan Detzel
  • 5,519
  • 9
  • 37
  • 49
7
votes
1 answer

How do you get the viewport scale after pinch/zoom on an iPhone web app?

Does anyone know how to get the size in pixels or scale value of the viewport after a user has pinched or double tapped to zoom in/out on a page in JavaScript? I've tried using window.innerWidth but I've had mixed results. Sometimes it seems to…
Loktar
  • 546
  • 3
  • 11
6
votes
1 answer

jQuery mobile: Pinch/Zoom/Scale Gesture - console.log('something');

I simply can't find anything in the docs or anywhere on how to detect a simple pinch-zoom Gesture on a touchdevice with jQuery Mobile? I would also considering using another library or anything. I just want to detect if the user is trying to scale…
matt
  • 42,713
  • 103
  • 264
  • 397
6
votes
3 answers

CGContextStrokePath not working when zooming and drawing images

I'm drawing lines according to touchesMoved: method and normally it works fine. But when I zoom into the image and draw, the previously drawn lines are both displaced and keep getting more and more blurry, ultimately vanishing. I've tried using…
tipycalFlow
  • 7,594
  • 4
  • 34
  • 45
6
votes
1 answer

Best way to have a zoom and pan image overlay on Android?

I'm relatively new to Android development, and I'm currently developing an app that requires a pinch-zoomable and pannable image that will have other images overlaid on top of it, similar to a MapView but without using the Google Maps API. I've done…
Michael
  • 701
  • 4
  • 15
6
votes
2 answers

Zooming in android - keep image in view

I know there are tons of threads on actually getting pinch zoom implemented - but I got this far already. I'm using SimpleScaleGestureListener to handle the pinching. I've managed to make sure you can't zoom out farther than to keep the image height…
Dynde
  • 2,592
  • 4
  • 33
  • 56
1
2
3
15 16