I have the following code snippet
if I take out WebViews(i).SetLayout(0, 0, 800, 1000)
then the program will run but it does not show any of the web pages.
Can anyone advise why this is not working?
TIA
B4X:
Sub Globals
Dim WebViews(8) As WebView
Dim panels(8) As Panel
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Initialize the pages and add them to the layout object
layout.Initialize
For i = 0 To panels.Length - 1
panels(i).Initialize("")
panels(i).LoadLayout("WebViewTest.bal")
WebViews(i).Initialize("WebView1")
WebViews(i).LoadURL("file:///android_asset/baby671.htm")
WebViews(i).SetLayout(0, 0, 800, 1000)
'WebView1.LoadURL("file:///android_asset/baby671.htm")
layout.AddPage(panels(i),"Page " & i)
Next
pager.Initialize(layout, "")
Activity.AddView(pager, 0, 40dip, Activity.Width, Activity.Height-48dip-40dip)
End Sub
if I take out WebViews(i).SetLayout(0, 0, 800, 1000)
then the program will run but it does not show any of the web pages.
Can anyone advise why this is not working?
TIA