protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Create your application here SetContentView(Resource.Layout.ExercisesListView); exerciseListView = FindViewById <ListView>(Resource.Id.listExerices); exDB = new ExerciseDb(); allExerices = exDB.Exercises.Values.ToList(); exerciseListView.Adapter = new ExercisesListAdapter(this, allExerices); //exerciseListView.FastScrollEnabled = true; exerciseListView.ItemClick += ExerciseListView_ItemClick; }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Create your application here Exercises = new ExerciseDb(); SetContentView(Resource.Layout.WorkoutView); FindViews(); PrepareTimer(); currentEx.Text = Exercises.Exercises["plank"].Title; descr.Text = Exercises.Exercises["plank"].Description; picture.SetImageResource(Resource.Drawable.Icon); HandleEvent(); UseSettings(); }