Reputation: 65
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
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
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
Reputation: 2182
zoom_controll.getZoomControls().setVisibility(View.GONE);
Upvotes: 1