I have the following line to fit the image inside the webview to the screen width:
String x= "<html><head><style type='text/css'>
body{margin:auto auto;text-align:center;}
img{width:100%25;}
</style></head><body><img src=\"" + url + "\" /></body></html>";
web_view.loadData(x, "text/html", "UTF-8");
How can I modify the code to have the image fit to the HEIGHT OF THE SCREEN instead of the width !? I want to have the effect of the image filling the entire space vertically and not necessarily horizontally (users can scroll horizontally or if the image has lower width there can be a blank space to the right). Is it possible to do this ?