Hello,
In my project I have five Fragment layouts and when the user chooses the last Fragment the SfBusyIndicator must be shown. I tried it with the next code in MainActivity.cs but the app crashes without an error and without showing the SfBusyIndicator:
private async void ShowBusyIndicator(Android.Views.View viewTabLayout4)
{
var busyIndicator = new SfBusyIndicator(viewTabLayout4.Context);
busyIndicator.IsBusy = true;
busyIndicator.ViewBoxHeight = 100;
busyIndicator.ViewBoxWidth = 100;
busyIndicator.AnimationType = AnimationTypes.SingleCircle;
busyIndicator.Title = "Laden...";
busyIndicator.TextSize = 50;
var layout = viewTabLayout4.FindViewById<ScrollView>(Resource.Id.ScrollView4);
layout.AddView(busyIndicator);
await Task.Delay(5000);
busyIndicator.IsBusy = false;
busyIndicator.Visibility = Android.Views.ViewStates.Invisible;
}
Do you have a sample implementing the SfBusyIndicator in Fragments?