Пример #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.activity_drawing);

            KarmaMeter meter = FindViewById <KarmaMeter> (Resource.Id.karmaMeter);

            meter.KarmaValue = 0.25d;
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.activity_propertyanimation);

            _seekBar = FindViewById <SeekBar> (Resource.Id.karmaSeeker);
            _seekBar.StopTrackingTouch += (s, e) => {
                var karmaValue = ((double)_seekBar.Progress) / _seekBar.Max;
                _karmaMeter.SetKarmaValue(karmaValue, true);
            };
            _karmaMeter = FindViewById <KarmaMeter> (Resource.Id.karmaMeter);
        }