Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

ImageView scaling on android... how can I remove/disable the zoom controls?

I'm having a problem with scaling an ImageView on Android as described in my code comments below:

canScale = false; // image is cropped and not scaled to specified dimensions.
canScale = true; // image is scaled properly, but now zoom controls appear on touch.

It seems I'm just trading one problem for another. It works fine in iOS.

My current workaround has been to use the image as a background image in a regular View.

— asked July 18th 2011 by Trevor Borgmeier
  • android
  • canscale
  • crop
  • scaling
  • zoom
0 Comments

1 Answer

  • Accepted Answer

    Have you tried?

    enableZoomControls:false
    

    http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.ImageView-object

    — answered July 19th 2011 by Dan Tamas
    permalink
    3 Comments
    • Thank You! I'm not sure how I missed that as it's clearly in the docs.

      — commented July 19th 2011 by Trevor Borgmeier
    • …and I even called them "zoom controls" in my title too!

      — commented July 19th 2011 by Trevor Borgmeier
    • it happens, too less coffee, or too much coding ;)

      — commented July 19th 2011 by Dan Tamas
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.