If I open the html page into the android browser (2.36 ) I can perform the pinch to zoom while maintaining the image to the size reached ( even on the Nexus 7 android 4.3 with crome) and reverse to orignal size.
With a webview the image is always reported as the% setted in html page when I do a pinch to zoom.
How can I have the default behavior of the browser?
TEST CODE
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
WebView1.Initialize("WebView1")
Activity.AddView(WebView1, 0,0, 100%x, 100%y)
WebView1.LoadUrl("http://www.webdomino.it/image.html")
HTML PAGE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<div style="margin:auto;" align="center" >
test1
<br />
<img border="0" src="sky.jpg" style="width:80%;" ></img>
<br />
test2
</div>
</body>
</html>
thanks
With a webview the image is always reported as the% setted in html page when I do a pinch to zoom.
How can I have the default behavior of the browser?
TEST CODE
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
WebView1.Initialize("WebView1")
Activity.AddView(WebView1, 0,0, 100%x, 100%y)
WebView1.LoadUrl("http://www.webdomino.it/image.html")
HTML PAGE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<div style="margin:auto;" align="center" >
test1
<br />
<img border="0" src="sky.jpg" style="width:80%;" ></img>
<br />
test2
</div>
</body>
</html>
thanks