Exemplo n.º 1
0
        protected override async void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.Issues);
            var toolbar = FindViewById <Android.Support.V7.Widget.Toolbar>(Resource.Id.Toolbar);

            SetSupportActionBar(toolbar);

            _refreshLayout = FindViewById <SwipeRefreshLayout>(Resource.Id.SwipeIssuesContainer);

            _refreshLayout.SetOnRefreshListener(this);
            _storage = Storage.GetInstance();


            _issuesListView = FindViewById <RecyclerViewEmptySupport>(Resource.Id.IssuesListView);


            progress_horizontal = FindViewById <ProgressBar>(Resource.Id.ProgressHorizontal);

            var view = FindViewById(Resource.Id.EmptyListView);

            _issuesListView.EmptyView = view;
            _layoutManager            = new LinearLayoutManager(this);
            _issuesListView.SetLayoutManager(_layoutManager);

            long repo = await _storage.GetWorkingRepo();

            if (repo == 0)
            {
                OpenRepoSelector();
            }
            else
            {
                await LoadRepo(repo);
            }
        }
 public EmptyDataObserver(RecyclerViewEmptySupport parent) : base()
 {
     _parent = parent;
 }