protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Tag = "Events"; SetContentView(Resource.Layout.view_events); FindViewById <GridView>(Resource.Id.grid).SetOnScrollListener(this); SupportActionBar.Title = ViewModel.GroupName; refresher = FindViewById <MvxSwipeRefreshLayout> (Resource.Id.refresher); refresher.SetColorScheme(Resource.Color.xam_darkblue, Resource.Color.xam_purple, Resource.Color.xam_blue, Resource.Color.xam_green); if (ViewModel.Events == null) { refresher.Refreshing = true; } else { refresher.Refreshing = ViewModel.CanLoadMore && ViewModel.Events.Count == 0; } refresher.RefreshCommand = ViewModel.RefreshCommand; LogEvent("Events", "Selected", ViewModel.GroupName); }
protected async override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Tag = "Groups"; SetContentView(Resource.Layout.view_groups); refresher = FindViewById <MvxSwipeRefreshLayout> (Resource.Id.refresher); refresher.SetColorScheme(Resource.Color.xam_darkblue, Resource.Color.xam_purple, Resource.Color.xam_blue, Resource.Color.xam_green); if (ViewModel.Groups == null) { refresher.Refreshing = true; } else { refresher.Refreshing = ViewModel.CanLoadMore && ViewModel.Groups.Count == 0; } refresher.RefreshCommand = ViewModel.RefreshCommand; FindViewById <GridView> (Resource.Id.grid).SetOnScrollListener(this); }