locked
Discus Flickers in ScrollView ('d) WebView RRS feed

  • Question

  • User365142 posted

    Discus is flickering in WebView. I'm using the ScrollView because it maintains the page banner but hides when user scrolls down. However, using the ScrollView to display the WebView also causes a flicker. Does anyone have any ideas on how to fix this?

    inside Activity

        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
    
            SetContentView(Resource.Layout.whatsOn);
    
            WebView whatsOnWebView = FindViewById<WebView>(Resource.Id.webViewWhatsOn);
            whatsOnWebView.SetBackgroundColor(Android.Graphics.Color.Green);
            whatsOnWebView.SetWebViewClient(new MyWebViewClient(this));
    
            whatsOnWebView.LoadUrl("https://bitchute.com/");
            whatsOnWebView.Settings.JavaScriptEnabled = true;
            whatsOnWebView.Settings.BuiltInZoomControls = true;
            whatsOnWebView.Settings.SetSupportZoom(true);
            whatsOnWebView.ScrollbarFadingEnabled = false;
    
        }
    

    inside whatsOn.axml


    full project

    github.com/hexag0d/bitchutemobileandroid_a2

    Thursday, December 20, 2018 3:01 AM

Answers

  • User365142 posted

    @"Alexander.6272" said: @hexagod Do you have any news about this? I have the same issue on XF 3.6.0.220655. Thks!

    It went away when I got rid of the scrollview. I'm now using a viewpager setup and javascript commands against webview instead of using a WebView inside of a ScrollView. I think this glitch happens when you have WebView inside a ScrollView

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Wednesday, February 19, 2020 9:35 PM
  • User365142 posted

    Here's my current app if you wanna see a WebView implementation that doesn't have tha discus flickering issue

    https://github.com/hexag0d/BitChuteMobileAndroid_BottomNav

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Wednesday, February 19, 2020 9:36 PM

All replies

  • User371688 posted

    I have tested your code on my device, but I am still not understand the flicker you said. Could you please post more details?

    Friday, December 21, 2018 6:07 AM
  • User46909 posted

    @hexagod Do you have any news about this? I have the same issue on XF 3.6.0.220655. Thks!

    Friday, April 5, 2019 2:27 AM
  • User365142 posted

    @"Alexander.6272" said: @hexagod Do you have any news about this? I have the same issue on XF 3.6.0.220655. Thks!

    It went away when I got rid of the scrollview. I'm now using a viewpager setup and javascript commands against webview instead of using a WebView inside of a ScrollView. I think this glitch happens when you have WebView inside a ScrollView

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Wednesday, February 19, 2020 9:35 PM
  • User365142 posted

    Here's my current app if you wanna see a WebView implementation that doesn't have tha discus flickering issue

    https://github.com/hexag0d/BitChuteMobileAndroid_BottomNav

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Wednesday, February 19, 2020 9:36 PM