Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How can I use correctly the activity indicator on Android?

$
0
0

Hi,
I'm using this plugin for showing that the app is busy,
but on Android the animation is always stuck.

For example I use it in this code:

private async Task SelectWorkOrderItemAsync(WorkOrderLista WoLista) {
        if (WoLista == null) return;

    // show the loading
        Acr.UserDialogs.UserDialogs.Instance.ShowLoading("Loading..");

        // get datas from DB
        WorkOrderDettaglio WoDett = await _WorkOrderService.GetDettaglioWorkOrder(WoLista.Guid_servizio);

   // this code opens another page with the datas extracted above
       await NavigationService.NavigateToAsync<DettaglioWoViewModel>(WoDett, Costanti.TipoPush.Normale, WoDett.NumWoAnno);

  // hide the loading
   Acr.UserDialogs.UserDialogs.Instance.HideLoading();
    }

This is the result:

as you can see, the loading indicator after some seconds become freezed.

This behaviors is the same if I use the default ActivityIndicator.
On IOS all works fine.
How can I correctly use it?

Thank you!


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>