Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Activity Indicator when consuming Webservices

$
0
0

Hi, I am working in a project with Webservices, I want to improve the performance of my app, right now is working like this:

In one ContentPage I start by creating a StackLayout and then add to this a label and an ActivityIndicator and after I assign this layout to Content. My goal with this is show some info. indicating that the app is working.

After that I consume in async mode a Webservice, when the ws load is completed I use the information from the WS to create more views (Label, Entry, Buttons, etc) and save some data to a DB. All this work is impacting on the performance, because I dont see the first 2 objects (label, and ActivityIndicator), I just see a white screen.... and after that the result of the components creation after the WS completed.

How can show this label and activityIndicator and after update my screen with the new contents?

Thanks in advance


Viewing all articles
Browse latest Browse all 89864

Trending Articles



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