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

EwoudvdWerfEwoudvdWerf USMember ✭✭✭

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

Answers

  • Michael_ShapiroMichael_Shapiro USMember ✭✭✭
    edited August 2016

    set the **indeterminate **property to True

  • EwoudvdWerfEwoudvdWerf USMember ✭✭✭

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

  • Michael_ShapiroMichael_Shapiro USMember ✭✭✭

    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.

  • sumitmishrasumitmishra Member ✭✭✭

    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);
    }

Sign In or Register to comment.