protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); adapter = new SessionsAdapter(this, PopulateSessionData()); ListView.Adapter = adapter; ListView.FastScrollEnabled = true; }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); sessions = EvolveData.SessionData; adapter = new SessionsAdapter(this, sessions); ListView.Adapter = adapter; ListView.FastScrollEnabled = true; }
private void BindData() { adapter = new SessionsAdapter(ActivityNavigator, Dao, Activity); binding.recyclerView.SetAdapter(adapter); binding.recyclerView.SetLayoutManager(new LinearLayoutManager(Activity)); int spacing = Resources.GetDimensionPixelSize(Resource.Dimension.spacing_xsmall); binding.recyclerView.AddItemDecoration(new SpaceItemDecoration(spacing)); adapter.AddAll(sessions); }