protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.itineraryAndTtbLayout); Button btnTTB = FindViewById <Button>(Resource.Id.btnTTB); Button btnITI = FindViewById <Button>(Resource.Id.btnITI); btnTTB.Click += (sender, e) => { DBItineraryRepository dbr = new DBItineraryRepository(); var resultTable = dbr.CreateTableChecklist(); var intent = new Intent(this, typeof(MainT2B)); intent.PutExtra("button", "ttb"); StartActivity(intent); OverridePendingTransition(Resource.Animation.slide_right, Resource.Animation.fade_out); }; btnITI.Click += (sender, e) => { DBItineraryRepository dbr = new DBItineraryRepository(); var result = dbr.CreateTable(); var intent = new Intent(this, typeof(MainT2B)); intent.PutExtra("button", "iti"); StartActivity(intent); OverridePendingTransition(Resource.Animation.slide_right, Resource.Animation.fade_out); }; }
//Our Main Menu Activity protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); RequestWindowFeature(WindowFeatures.NoTitle); SetContentView(Resource.Layout.mainMenuLayout); DBItineraryRepository dbr = new DBItineraryRepository(); var result = dbr.CreateDB(); Button btnMountainList = FindViewById <Button>(Resource.Id.btnMountainList); Button btnThingsToBring = FindViewById <Button>(Resource.Id.btnThingsToBring); Button btnNoTrace = FindViewById <Button>(Resource.Id.btnLeaveNoTrace); Button btnMountainMap = FindViewById <Button>(Resource.Id.btnMountainMap); Button btnSettings = FindViewById <Button>(Resource.Id.btnSetting); btnMountainList.Click += (sender, e) => { const string message = "Data Fetching, Please wait."; var intent = new Intent(this, typeof(MountainListAct)); Toast.MakeText(this, message, ToastLength.Short).Show(); StartActivity(intent); OverridePendingTransition(Resource.Animation.slide_right, Resource.Animation.fade_out); Finish(); }; btnThingsToBring.Click += (sender, e) => { var resultTable = dbr.CreateTableChecklist(); var resultTableIti = dbr.CreateTable(); var intent = new Intent(this, typeof(ItiAndTtbActivity)); StartActivity(intent); OverridePendingTransition(Resource.Animation.slide_right, Resource.Animation.fade_out); }; btnNoTrace.Click += (sender, e) => { var intent = new Intent(this, typeof(EssentialsAct)); StartActivity(intent); OverridePendingTransition(Resource.Animation.slide_right, Resource.Animation.fade_out); }; btnMountainMap.Click += (sender, e) => { var intent = new Intent(this, typeof(MountainMapAct)); StartActivity(intent); OverridePendingTransition(Resource.Animation.fade_in, Resource.Animation.fade_out); Finish(); }; btnSettings.Click += (sender, e) => { var resultTable = dbr.CreateTableSettings(); var intent = new Intent(this, typeof(SettingsAct)); StartActivity(intent); OverridePendingTransition(Resource.Animation.fade_in, Resource.Animation.fade_out); }; }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.detailLayout); FindViews(); Fonts(); Android.Content.Intent i = this.Intent; string iname = i.Extras.GetString("MTNAME"); string iimg0 = i.Extras.GetString("IMG0"); string iimg1 = i.Extras.GetString("IMG1"); string iimg2 = i.Extras.GetString("IMG2"); string iimg3 = i.Extras.GetString("IMG3"); string iimg4 = i.Extras.GetString("IMG4"); string iimg5 = i.Extras.GetString("IMG5"); string ilocation = i.Extras.GetString("LOCATION"); string ijumpoff = i.Extras.GetString("JUMPOFF"); string idescription = i.Extras.GetString("DESCRIPTION"); string ibackground = i.Extras.GetString("BACKGROUND"); string iitinerary = i.Extras.GetString("ITINERARY"); string ipracticalities = i.Extras.GetString("PRACTICALITIES"); string iattire = i.Extras.GetString("ATTIRE"); string ittb = i.Extras.GetString("TTB"); string inote = i.Extras.GetString("NOTE"); string iimgdesc00 = i.Extras.GetString("IMGD0"); string iimgdesc01 = i.Extras.GetString("IMGD1"); string iimgdesc02 = i.Extras.GetString("IMGD2"); string iimgdesc03 = i.Extras.GetString("IMGD3"); string iimgdesc04 = i.Extras.GetString("IMGD4"); string iimgdesc05 = i.Extras.GetString("IMGD5"); string ividdesc = i.Extras.GetString("VIDD"); var imageBitmap0 = ("https://ia801506.us.archive.org/35/items/mj_anda_yahoo_Pics/" + iimg0 + ".jpg"); var imageBitmap1 = ("https://ia801506.us.archive.org/35/items/mj_anda_yahoo_Pics/" + iimg1 + ".jpg"); var imageBitmap2 = ("https://ia801506.us.archive.org/35/items/mj_anda_yahoo_Pics/" + iimg2 + ".jpg"); var imageBitmap3 = ("https://ia801506.us.archive.org/35/items/mj_anda_yahoo_Pics/" + iimg3 + ".jpg"); var imageBitmap4 = ("https://ia801506.us.archive.org/35/items/mj_anda_yahoo_Pics/" + iimg4 + ".jpg"); var imageBitmap5 = "https://ia801506.us.archive.org/35/items/mj_anda_yahoo_Pics/" + iimg5 + ".jpg"; Picasso.With(this).Load(imageBitmap0).Into(mtimg0); Picasso.With(mContext).Load(imageBitmap1).Into(mtimg1); Picasso.With(mContext).Load(imageBitmap2).Into(mtimg2); Picasso.With(mContext).Load(imageBitmap3).Into(mtimg3); Picasso.With(mContext).Load(imageBitmap4).Into(mtimg4); Picasso.With(mContext).Load(imageBitmap5).Into(mtimg5); tmtname.Text = iname; tmtloc.Text = ilocation; tjumpoff.Text = ijumpoff; tdesc.Text = idescription; tbackground.Text = ibackground; titinerary.Text = iitinerary; tpracticalities.Text = ipracticalities; tattire.Text = iattire; tttb.Text = ittb; tnote.Text = inote; timgdesc00.Text = iimgdesc00; timgdesc01.Text = iimgdesc01; timgdesc02.Text = iimgdesc02; timgdesc03.Text = iimgdesc03; timgdesc04.Text = iimgdesc04; timgdesc05.Text = iimgdesc05; tviddesc.Text = ividdesc; Button btnItinerary = FindViewById <Button>(Resource.Id.btnItinerary); btnItinerary.Click += ((sender, e) => { DBItineraryRepository dbr = new DBItineraryRepository(); var result = dbr.CreateTable(); var intent = new Intent(this, typeof(itineraryAct)); intent.PutExtra("name", iname); StartActivity(intent); FadeInAnim(); }); mtimg0.Click += Mtimg0_Click; mtimg1.Click += Mtimg1_Click; mtimg2.Click += Mtimg2_Click; mtimg3.Click += Mtimg3_Click; mtimg4.Click += Mtimg4_Click; mtimg5.Click += Mtimg5_Click; videoimg.Click += Videoimg_Click; }