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.
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.
Answers
set the **indeterminate **property to True
@MichaelShapiro but how can i display that while the webview is loading?
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.
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);
}