Example #1
0
        public HistoryView(Activity activity, HistoryPresenter presenter)
            : base(activity)
        {
            this.presenter = presenter;
            activity.SetContentView(Resource.Layout.trip_history);
            this.tripHistoryAdapter = new TripAdapter(activity.LayoutInflater);
            this.progressBar        = activity.FindViewById <ProgressBar> (Resource.Id.trip_history_progressbar);
            this.listViewResults    = activity.FindViewById <ListView>(Resource.Id.trip_history_list_view);

            this.listViewResults.Adapter    = this.tripHistoryAdapter;
            this.listViewResults.ItemClick += (object sender, AdapterView.ItemClickEventArgs args)
                                              => OnTripSelected(sender, args);

            ShowBusy(false);
        }
Example #2
0
 protected override void OnCreate(Bundle bundle)
 {
     base.OnCreate(bundle);
     this.presenter = new HistoryPresenter(this);
 }