//Choosing coffee //List<string> coffee, size, milk; //ExpandableListView coffeeLv; //ExpandableListAdapter coffeeAdapter; protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Order); supportToolbar = this.FindViewById <SupportToolbar> (Resource.Layout.order_menu); SetSupportActionBar(supportToolbar); SupportActionBar.SetHomeButtonEnabled(true); SupportActionBar.SetDisplayHomeAsUpEnabled(true); SupportActionBar.SetDisplayShowTitleEnabled(true); SupportActionBar.Title = "TapTap Coffee"; //make sure you have a dismiss button or something for devices orderDialog = new Android.Support.V7.App.AlertDialog.Builder(this); orderDialog.SetTitle("Woah There!"); orderDialog.SetMessage("You forgot to fill in every field."); orderDialog.SetPositiveButton("Thanks!", delegate { }); //Implement variable pricing... //coffeeData = new Dictionary<string, List<string>> (); //GetCoffeeData (); //coffeeDataHeaders = new List<string> (coffeeData.Keys); //coffeeAdapter = new ExpandableListAdapter (this, coffeeData, coffeeDataHeaders); cafeFragment = new CafeFragment(TempStorage.Cafes, new CafeAdapter(this, TempStorage.Cafes)); FragmentManager.BeginTransaction().Replace(Resource.Id.frame_action, cafeFragment).Commit(); }
//Choosing coffee //List<string> coffee, size, milk; //ExpandableListView coffeeLv; //ExpandableListAdapter coffeeAdapter; protected override void OnCreate (Bundle bundle) { base.OnCreate (bundle); SetContentView (Resource.Layout.Order); supportToolbar = this.FindViewById<SupportToolbar> (Resource.Layout.order_menu); SetSupportActionBar (supportToolbar); SupportActionBar.SetHomeButtonEnabled(true); SupportActionBar.SetDisplayHomeAsUpEnabled (true); SupportActionBar.SetDisplayShowTitleEnabled (true); SupportActionBar.Title = "TapTap Coffee"; //make sure you have a dismiss button or something for devices orderDialog = new Android.Support.V7.App.AlertDialog.Builder (this); orderDialog.SetTitle ("Woah There!"); orderDialog.SetMessage ("You forgot to fill in every field."); orderDialog.SetPositiveButton ("Thanks!", delegate { }); //Implement variable pricing... //coffeeData = new Dictionary<string, List<string>> (); //GetCoffeeData (); //coffeeDataHeaders = new List<string> (coffeeData.Keys); //coffeeAdapter = new ExpandableListAdapter (this, coffeeData, coffeeDataHeaders); cafeFragment = new CafeFragment (TempStorage.Cafes, new CafeAdapter (this, TempStorage.Cafes)); FragmentManager.BeginTransaction ().Replace (Resource.Id.frame_action, cafeFragment).Commit (); }