I want exactly the answer marked as useful here says to work. But Eclipse editor cross out the word LayoutAlgorithm because it is deprecated and I cannot install the application in emulator. Before that, I've tried to use style tag in the html document (in assets folder) to resize image in relation to window size and works perfectly in Chrome but not in webview. This is the style:
<style>
* {
padding: 0;
margin: 0;
}
.fit { /* set relative picture size */
max-width: 100%;
max-height: 100%;
}
.center {
display: block;
margin: auto;
}
</style>
When testing in emulator, the pictures only resizes in relation to the width screen in portrait view, if I rotate the emulator, there's no resizing. Any help? :-/