示例#1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.activity_drawing);

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

            meter.KarmaValue = 0.25d;
        }
 protected override void OnCreate(Bundle bundle)
 {
     base.OnCreate(bundle);
     SetContentView(Resource.Layout.activity_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);
 }
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);
			SetContentView (Resource.Layout.activity_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);
		}