Can we zoom in and out using views in appecelerator titanium? -
is possible zoom in , zoom out in view using double tap or pinch functionality? if can still same coordinates or different coordinates after zooming in?
if have view of height 100 , width 100 , when click on end of view returns y-position 100.
another question have after zoom using pinch or doubletap, return end y co-ordinate 100 or return different value since zoomed-in?
if not possible, there an alternative?
thank you.
you can add view scrollview. when you've done can zoom in , out pinching.
var scrollview = titanium.ui.createscrollview({ contentwidth: 'auto', contentheight: 'auto', top: 0, bottom: 0, showverticalscrollindicator: true, showhorizontalscrollindicator: true, //here can determine max , min zoom scale maxzoomscale: 100, minzoomscale: 0.1, //with property can set default zoom zoomscale: 1 });
after create can add view it
scrollview.add(view)
hope helps!
tjeu
Comments
Post a Comment