Android Question Blank Webview unless scrolled

casher2

Member
Licensed User
Longtime User
Webview panel and View display but with no text. Text only appears after I scroll the webview but not before. As soon as I touch it, text appears. Don't know if the 'visible' property is necessary, placed it before and after 'LoadURL' just testing. Even tried 'requestfocus'. Have same problem in debug and release compilations.

Out of ideas. Tried fooling with html adding <Page>, <Div>, etc. All I could think of.

This is abbreviated version of eula.html in asset files. Full version needs scrolling to view in entirety:

<!DOCTYPE html>
<html>
<h3>Enteral Calculator End User License Agreement (EULA)</h3>
</html>

Program(must be missing something here!)

Sub ShowEula
Dim c As ColorDrawable
EulaFile="eula.html"
c.Initialize2(Colors.White,25dip,5dip,Colors.Yellow)
pnlEula.Background = c
wvEula.LoadUrl("file:///android_asset/" & EulaFile)
pnlEula.Visible=True
wvEula.Visible=True
End Sub
 

eurojam

Well-Known Member
Licensed User
Longtime User
you can also try to use:
B4X:
wvEula.Loadhtml(File.ReadString(File.DirAssets, "eula.html") )
 
Upvote 0
Top