Ejemplo n.º 1
0
 void UpdateIssues(List <Models.Issue> issues)
 {
     using (var h = new Handler(Looper.MainLooper))
         h.Post(() =>
         {
             (_issuesListView.GetAdapter() as IssuesAdapter).Update(issues);
             _refreshLayout.Refreshing = false;
         });
 }
Ejemplo n.º 2
0
        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;
                }
            }
        }