Community Questions & Answers

Image zoom

Hi all, I am using below code to zoom image on the clicked position. The problem is on click of left corner(south east) the image zooms to right corner(north west) and all other sides it works fine. ~~~ var image_view = Ti.UI.createImageView({ image...

Reset zoom scale in webview

Is it possible to programmatically reset the zoom/scale that the user has done in a webview? My issue is when the webview is pinch zoomed in landscape and you rotate the phone, the webview is still zoomed in and in my case, portrait mode is now extremely...

Smooth zoom (pinch)

This is the code I use to zoom an image view. It works but the zoom is not smooth. After some fingers movements, it resizes abruptly, allowing very little control to the user. Any workaround? ~~~ function pinch(e) { var _width =...

Pinch to zoom in Android

Hi, I am trying to implement pinch to zoom in Android using ImageView. Following in the code which seems to be working with certain issue: ~~~ var lastScaleValue = 1; var win = Titanium.UI.createWindow({ exitOnClose : true, navBarHidden :...

Pinch to zoom in iOS

Hi, I am trying the following code using 3.0.2GA, iOS 6 simulator and the pinch to zoom feature is working as expected, but there is an issue in the UI. Below is the code: ~~~ var win = Ti.UI.createWindow({ backgroundColor: '#000' }); var image =...

Prevent zooming the letterbox areas

I have a scrollview, let's say it's in portrait orientation. I have an imageView inside it, which fills the entire screen. The image inside the imageView is in landscape, so there are transparent areas below and over the image. This is fine, until you...

Setting Zoom Distance Within a View

I'm having trouble figuring out how to set the zoom level of a view. For instance, let's say I have a view that is 3000x3000px, and I want to display the entire view inside of a window without changing the dimensions of the view itself. Is there a zoom...

Scroll View - How to set zoomScale ?

Hi ! In Application I have a lot of scrollViews in which are images. User can change zoom of image by pinch gesture. What I need is set default zoom ( 1.0 ) after double tap on view. Problem is listener... --- scrollView.addEventListener('doubletap',...

TiScrollView's Wrapper View

After looking around Ti's ScrollView implementation, I understand that it uses a UIView called wrapper to hold child views, and that it is also used for scaling. This works very well, when used for normal purposes (when the user doesn't scale the...

Ipad MapView Zoom By miles

Hello Friends, I am working on mapview And need to give functionality that User's can zoom the map as per miles. i have basic idea about zooming that i need to set lattitudeDelta & longitudeDelta for that. Now My Question is how to set value of...

Can't zoom out map View

Hi, I use this little piece of code to display a map in a view contained in a window (iOS): ~~~ var w = Ti.UI.createWindow({title:"Cerca",backgroundColor:'#000000'}); var v = Ti.UI.createView({backgroundColor:'#ffffff'}); var...

Pinch Zoom In Android

I have implemented pinch zoom in i-phone but now want to implement it in android but pinch event is not supported on android., please help me how to do it

Zoom in webview onload

Hi. Is it possible to have a remote url that i dont have any control over to zoom in to initial-scale 2.0 on load. The content on the page i want to display is just 50% and when i double click and zoom it is perfect. How do i make it fill the whole...

Preset height and width?

I was curious if there is a way to preset the height and width for the zoom area on a webpage. Currently I have a open web page view where I am viewing one webpage. And the page is huge and the user has to zoom in automatically. Is there a way that I...

ScrollView doesn't scale on Android

Does ScrollView no longer scale on Android? I have an application that scales 4 images at once using the pinch event on iOS. However, that event is not supported on Android, and attempts to get the scale event on a scroll view have been fruitless. Is...

Android Webview Zoom Issues in 2.1.1

I think this is most likely just a bug, but I wanted to see if anyone had a workaround. With Titanium 2.1 running on Android 2.3.x on some devices like Nexus One and Thunderbolt zoom (and pinch to zoom) will not work in a web view until you swipe or...

Pan and Zoom Images

Hi, I'd like to be able to pan an image and zoom it with either a pinch or doubletap. I had tried scrollView but found it was limited to one direction. I then used the canScale property in the imageView, This reduced the width of the viewable area and...

add a zoom scale limit on android

hi, in my android app i have this zoom function: ~~~ function updateTransform(view) { var transform = Ti.UI.create2DMatrix() .scale(lastScale*currentScale); transform.tx = lastTranslation.x+currentTranslation.x; transform.ty =...

Imageview scale/zoom event?

Is there a way to tell if a user has scaled/zoomed an imageview in android? I didn't see any properties for zoom but was hoping someone may know a hack.. I am overlaying labels on an image and when the user zooms those label are not in the correct place..

Explain ScrollView values....

First, let me explain what I am trying to do. I have a US map which I have put in a scrollView. I want the user to be able to zoom in on the map, so I have made the map rather large (approx 3000x1700px). I have set the scrollview with this code: ~~~ var...

capture zooming image

i work a camera application. all functionality work properly but i could not capture zooming image with slider zooming functionality can u suggest some idea to me how to solve this problem

Showing 1-50 of 125 1 2 3