protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.PropertyAnimation);

            _seekBar = FindViewById <SeekBar>(Resource.Id.KarmaSeeker);
            _seekBar.StopTrackingTouch += (sender, args) =>
            {
                double karmaValue = ((double)_seekBar.Progress) / _seekBar.Max;
                _karmaMeter.SetKarmaValue(karmaValue, true);
            };
            _karmaMeter = FindViewById <KarmaMeter>(Resource.Id.KarmaMeter);
        }
Esempio n. 2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.Drawing);

            _karmaMeter = FindViewById <KarmaMeter>(Resource.Id.KarmaMeter);

            var downButton = FindViewById <Button>(Resource.Id.ButtonDown);

            downButton.Click += DownButton_Click;
            var upButton = FindViewById <Button>(Resource.Id.ButtonUp);

            upButton.Click += UpButton_Click;
        }