Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 3    Views: 78

hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
09/22/12 08:34 AM (13 years ago)

Using custom URL plugin

When using this plug and directing to a website page, is there a way to prevent the user to zoom in/zoom out or move the page around on the screen? This is for androids. Thanks, Howard
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
09/22/12 09:56 AM (13 years ago)
You will have to have a look around line number 116, 117 in the screen_customHTML.java file which goes like this: webView.getSettings().setSupportZoom(true); webView.getSettings().setBuiltInZoomControls(true); set value for those false instead of true.
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
09/23/12 09:28 AM (13 years ago)
Great! Thanks Sandeep, will look into that!
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
09/23/12 03:24 PM (13 years ago)
Hi Sandeep, so I tried the above and it did not work. But that does not mean I did it correct. This is what I did and please correct any errors. First I made the changes in eclipse Then, I changed the settings in Custom URL not HTML, because that is the screen that I am using. Does that matter? After I made the changes I compiled it and install on my test phone. Tried the webpage and still was able to zoom and move it around. Questions: 1) Do I need to do this in eclipse? 2) after the changes do I need to compile it again and reinstall on test phone? 3) Is there a way to get the line numbers to appear to see if I am around the 170-171 line? thanks for your help, Howard
 

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.