Community
cancel
Showing results for 
Search instead for 
Did you mean: 
madson_g_
Beginner
85 Views

Image zoom

I cannot find a real good example or a way to zoom images on intel xdk. On android native language I may create a new layout xml to open the image widely and then zoom it with some extra lib help. Is there a way to make it with xdk using double tap and/or pinch and zoom?

Tags (2)
0 Kudos
4 Replies
Diego_Calp
Valued Contributor I
85 Views

Hi,

You may use this jquery plugin:

https://github.com/timmywil/jquery.panzoom/blob/master/README.md

Regards,

Diego

PaulF_IntelCorp
Employee
85 Views

This line in your <head> section will allow for pinch zoom of the entire display up to a 2x factor:

<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes, minimum-scale=1, maximum-scale=2">

I think the settings should be self-explanatory...

You can try the "hello cordova" demo app to see this work.

Marcos_N_
Beginner
85 Views

It runs to me!!

Marcos_N_
Beginner
85 Views

i told it so quickly... it runs only while the app is starting.. after that it do change the zoom...i tried it in the pages that i want to zoom, even in the index.

Reply