コード例 #1
0
		public override View OnCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
		{
			var view = inflater.Inflate (Resource.Layout.PropertyAnimationLayout, container, false);
			karmaMeter = view.FindViewById<KarmaMeter> (Resource.Id.karmaMeter);
			karmaSeeker = view.FindViewById<SeekBar> (Resource.Id.karmaSeeker);
			karmaSeeker.StopTrackingTouch +=
				(sender, e) => karmaMeter.SetKarmaValue (((double)karmaSeeker.Progress) / karmaSeeker.Max, true);

			return view;
		}
コード例 #2
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var view = inflater.Inflate(Resource.Layout.PropertyAnimationLayout, container, false);

            karmaMeter  = view.FindViewById <KarmaMeter> (Resource.Id.karmaMeter);
            karmaSeeker = view.FindViewById <SeekBar> (Resource.Id.karmaSeeker);
            karmaSeeker.StopTrackingTouch +=
                (sender, e) => karmaMeter.SetKarmaValue(((double)karmaSeeker.Progress) / karmaSeeker.Max, true);

            return(view);
        }