Android Question wordwrap in a webview

renzino

Member
Licensed User
Longtime User
Hello, in my app I've a webview which displays some html pages. Now, installing the app in different devices, I got different results. In some devices, when I use zoom, text is wordwrapped, while in other devices some part of the text is displayed, but the remaining text of the row (on the left, or on the right) is not displayed, and to read it i have to move display with finger on the left (or on the right).
Is there a way to fix the output deciding if use wordwrap or not? thanks
 

renzino

Member
Licensed User
Longtime User
Thank you Erel, but I put the code as below:
Sub Globals
Private WV_info As WebView
Dim jo As JavaObject = WV_info (my WebView name)
jo.RunMethod("setInitializeScale", Array(1))
End Sub


I launch code compilation and obtain this:
Parsing code. 0.22
Compiling code. Error
Error compiling program.
Error description: 'as' expected.
Occurred on line: 21
jo.RunMethod("setInitializeScale", Array(1))
Word: (


Where did I wrong?
 
Upvote 0

renzino

Member
Licensed User
Longtime User
Sorry, but didn't work...
My code:
Sub Globals
Private WV_info As WebView
Dim jo As JavaObject = WV_info
jo.RunMethod("setInitializeScale", Array As Object)
End Sub

Compilation error:
Parsing code. 0.02
Compiling code. Error
Error compiling program.
Error description: '(' expected.
Occurred on line: 21
jo.RunMethod("setInitializeScale", Array As Object)
Word: )


Thanks again
 
Upvote 0
Top