void UpdateIssues(List <Models.Issue> issues) { using (var h = new Handler(Looper.MainLooper)) h.Post(() => { (_issuesListView.GetAdapter() as IssuesAdapter).Update(issues); _refreshLayout.Refreshing = false; }); }
public override void OnChanged() { var adapter = _parent.GetAdapter(); if (adapter != null && _parent.EmptyView != null) { if (adapter.ItemCount == 0 && !_parent.IsLoading) { _parent.EmptyView.Visibility = ViewStates.Visible; _parent.Visibility = ViewStates.Gone; } else { _parent.EmptyView.Visibility = ViewStates.Gone; _parent.Visibility = ViewStates.Visible; } } }