Android Question Resize Image to WebView

Declan

Well-Known Member
Licensed User
Longtime User
I am using the following to render a PDF to a WebView:
B4X:
wvPDF.LoadHtml("<HTML><HEAD></HEAD><BODY><IMG SRC='file://" & ImagePath & "' /></BODY></HTML>")
The render is fine, but it only consumes about 50% of the WebView width.
Is it possible to "Zoom" the image so that it fits the entire width of the WebView?
 

Declan

Well-Known Member
Licensed User
Longtime User
Upvote 0
Top