Software Archive
Read-only legacy content
17061 Discussions

Image zoom

madson_g_
Beginner
327 Views

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?

0 Kudos
4 Replies
Diego_Calp
Valued Contributor I
327 Views

Hi,

You may use this jquery plugin:

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

Regards,

Diego

0 Kudos
PaulF_IntelCorp
Employee
327 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.

0 Kudos
Marcos_N_
Beginner
327 Views

It runs to me!!

0 Kudos
Marcos_N_
Beginner
327 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.

0 Kudos
Reply