Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 2    Views: 72

piggilypoo
Aspiring developer
Profile
Posts: 172
Reg: Jun 28, 2011
San Diego
5,120
07/15/14 09:43 AM (9 years ago)

Removing zoom features in CustomHTML screens on android

I have some HTMLPro screens linking to customHTML screens that hold responsive buttons for my home screen. Is there a way to disable the zoom feature on android? Right now, when you swipe anywhere on the screen, buttons to zoom in/out appear. The user can also pinch and zoom. Obviously, this doesnt make sense for a button menu to have. Is there a way to disable it? I've tried various meta tags I've searched up, but nothing works.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
07/15/14 10:16 AM (9 years ago)
Try to go to the customhtml screen java file in eclipse and search for: webView.getSettings().setSupportZoom(true); webView.getSettings().setBuiltInZoomControls(true); Assuming you are using Android BT 3.0 Try changing (true) to (false)
 
piggilypoo
Aspiring developer
Profile
Posts: 172
Reg: Jun 28, 2011
San Diego
5,120
like
07/15/14 10:42 PM (9 years ago)
Thanks, worked perfect! Had to make the adjustments in the HTMLpro java file
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.