- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You may use this jquery plugin:
https://github.com/timmywil/jquery.panzoom/blob/master/README.md
Regards,
Diego
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It runs to me!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page