Advertisement
Guest User

Untitled

a guest
Jul 20th, 2015
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. using System;
  2.  
  3. using Android.App;
  4. using Android.Content;
  5. using Android.Runtime;
  6. using Android.Views;
  7. using Android.Widget;
  8. using Android.OS;
  9. using JittersApp.Droid.LayoutCodes;
  10.  
  11.  
  12. namespace JittersApp.Droid
  13. {
  14. [Activity(Label = "JittersApp.Droid", MainLauncher = true, Icon = "@drawable/icon", Theme = "@android:style/Theme.Black.NoTitleBar.Fullscreen")]
  15. public class MainActivity : Activity
  16. {
  17.  
  18. protected override void OnCreate (Bundle bundle)
  19. {
  20. base.OnCreate (bundle);
  21.  
  22. // Set our view from the "main" layout resource
  23. SetContentView (Resource.Layout.Main);
  24. Core();
  25. }
  26.  
  27. public void Core()
  28. {
  29. //Drinks Button
  30. Button dk = FindViewById<Button>(Resource.Id.drinksBtn);
  31. dk.Click += delegate
  32. {
  33. SetContentView(Resource.Layout.Drinks);
  34. Drinks dr = new Drinks();
  35. dr.coreDrinks(this);
  36. };
  37.  
  38. }
  39.  
  40. }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement