Esempio n. 1
0
 public void RetrieveWorkouts()
 {
     MyWorkoutList.Add(new WorkoutItem()
     {
         title = "Friday workout", exercises = "Weighted Pull Ups\nBarbell Full Squat\nSingle-Arm Linear Jammer\nLandmine 180's", expanded = false
     });
     adapter.NotifyDataSetChanged();
     MyWorkoutList.Add(new WorkoutItem()
     {
         title = "wednesday prancercise", exercises = "Bench Press\nDeadlift with Chains\nBox Squat\nKneeling Squat", expanded = false
     });
     adapter.NotifyDataSetChanged();
 }
Esempio n. 2
0
 /*
  * Publish results to UI.
  */
 protected override void PublishResults(ICharSequence constraint, FilterResults results)
 {
     adapter.setData((JavaList <WorkoutItem>)results.Values);
     adapter.NotifyDataSetChanged();
 }