protected async System.Threading.Tasks.Task OnGetListAsync() { GetUrl get = new GetUrl(); Url = get.GetNewsUrl(); activity_indicator.IsRunning = true; activity_indicator.IsVisible = true; GetContent getContent = new GetContent(Url, "news_content_key"); string content = await getContent.GetContentAsync(); List <News> tr = JsonConvert.DeserializeObject <List <News> >(content); trends = new ObservableCollection <News>(tr); int i = trends.Count; if (i > 0) { activity_indicator.IsRunning = false; activity_indicator.IsVisible = false; } i = (trends.Count * heightRowsList); activity_indicator.HeightRequest = i; ConvertAndShowNews(); }