user
user

Reputation: 65

How to stop zoom on webpage?

I am creating a android web application.
Can I anyhow disable the zoom functionality on the webpage ?
In others words I want it could not be resized. help

Upvotes: 1

Views: 160

Answers (3)

iAmLearning
iAmLearning

Reputation: 1174

see if it helps :

<head>  
  <meta name="viewport" content="target-densitydpi=device-dpi, initial-scale=1.0,   user-scalable=no" />  
</head>  

Upvotes: 0

Simo Mafuxwana
Simo Mafuxwana

Reputation: 3762

On the meta tag section of your HTML use minimum-scale=1 to set your viewport.

<meta name="viewport" content="initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,width=device-width,user-scalable=no" />

Click here is for thorough explanation

How ever i must add that part of that functionality depends on the device's native functionality

Upvotes: 0

Shivang Trivedi
Shivang Trivedi

Reputation: 2182

 zoom_controll.getZoomControls().setVisibility(View.GONE);

Upvotes: 1

Related Questions