locked
How can i display a spinning wheel loading indicator while loading a webview? RRS feed

  • Question

  • User232254 posted

    How can i display a spinning wheel loading indicator while loading a webview? Like this /

    Sunday, August 7, 2016 2:27 PM

All replies

  • User208615 posted

    set the *indeterminate *property to True

    Sunday, August 7, 2016 3:54 PM
  • User232254 posted

    @MichaelShapiro but how can i display that while the webview is loading?

    Sunday, August 7, 2016 5:51 PM
  • User208615 posted

    Have the "spinner" on the activity and hidden by default. Start loading the web (or any other lengthy operation) in asynchronous manner and make the "spinner" visible. Once the asynchronous operation is complete - hide the spinner again. Something like that. Actual code, of course, depends on what exactly you are trying to do.

    Sunday, August 7, 2016 6:58 PM
  • User366697 posted

    Hi, We are using an activity spinner while loading a webview but activity spinner not showing on webview LoadStarted event. Please check my code below and guide me.

    private void MyWebView_LoadStarted(object sender, EventArgs e) { activitySpinner.Hidden = false; activitySpinner.StartAnimating(); System.Threading.Thread.Sleep(9000); }

    Friday, October 11, 2019 6:27 AM