Android Question WebkitWebView in ASViewPager

ShadTech

Member
Licensed User
I have added WebkitWebView to ASViewPager1 using the following code
B4X:
Private p As B4XView = xui.CreatePanel("")
    p.SetLayoutAnimated(0,0,0, 100%x, 100%y)
    p.LoadLayout("pg1")
    WebkitWebView1.JavaScriptEnabled=True
    WebkitWebView1.Settings.AlgorithmicDarkeningAllowed=True
    WebkitWebView1.Settings.AllowContentAccess=True
    WebkitWebView1.Settings.AllowFileAccess=True
    WebkitWebView1.Settings.AllowFileAccessFromFileURLs=True
    WebkitWebView1.Settings.SupportMultipleWindows=True
    WebkitWebView1.Settings.JavaScriptCanOpenWindowsAutomatically=True
    WebkitWebView1.Settings.DomStorageEnabled=True
    WebkitWebView1.Settings.DatabaseEnabled=True
    WebkitWebView1.Settings.LoadWithOverviewMode=True
    WebkitWebView1.Settings.UseWideViewPort=True
    WebkitWebView1.Settings.LoadsImagesAutomatically=True
    
    WebkitWebView1.WebView.LoadUrl("http://aldarstores.ddns.net")
'    ASViewPager1.AddPage(WebkitWebView1.View,"")
    ASViewPager1.AddPage(p,1)

but when we loaded I can not Scroll down,
it was soooooooo heavily,
any solution????
 

Alexander Stolte

Expert
Licensed User
Longtime User
any solution????
If the scrolling does not work there either, then you must not place a webview on a view pager, as the touch events all interfere with each other.
 
Upvote 0

ShadTech

Member
Licensed User
If the scrolling does not work there either, then you must not place a webview on a view pager, as the touch events all interfere with each other.
thank you
that works smoothly
thank you again
 
Upvote 0
Top