예제 #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Create your application here
            SetContentView(Resource.Layout.activity_festivity);

            //Set our toolbar
            var toolbar = FindViewById <Toolbar>(Resource.Id.app_bar);

            SetActionBar(toolbar);
            ActionBar.Title = "Festivity";

            maxBAC  = FindViewById <TextView>(Resource.Id.text_max_BAC);
            currBAC = FindViewById <TextView>(Resource.Id.text_curr_BAC);
            Button drinksList = FindViewById <Button>(Resource.Id.drinkListButton);

            SeekBar seekbar = FindViewById <SeekBar>(Resource.Id.edit_max_BAC);

            seekbar.Max = 40;
            seekbar.IncrementProgressBy(1);
            seekbar.SetOnSeekBarChangeListener(this);

            drinksList.Click += delegate
            {
                Intent intent = new Intent(this, typeof(DrinksActivity));
                StartActivity(intent);
            };
        }