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; }
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); }