public LoadingBarController(View flashBarView) { barView = flashBarView; barAnimator = barView.Animate (); messageView = barView.FindViewById<TextView> (Resource.Id.loadingBarMessage); HideBar (true); }
public FlashBarController(View flashBarView) { barView = flashBarView; barAnimator = barView.Animate (); messageView = barView.FindViewById<TextView> (Resource.Id.flashbar_message); var flashBarBtn = barView.FindViewById<Button> (Resource.Id.flashbar_button); flashBarBtn.Click += delegate { HideBar (false); if (flashBarCallback != null) flashBarCallback (); }; hideRunnable = () => HideBar(false); HideBar (true); }
public void startProgress(long paramLong, ITimeInterpolator paramTimeInterpolator, Animator.IAnimatorListener paramAnimatorListener) { hideIndeterminateSlider(true); this.slider.TranslationX = 0.0F; showSlider(false); int i = Resources.DisplayMetrics.WidthPixels; FrameLayout.LayoutParams localLayoutParams = (FrameLayout.LayoutParams) this.slider.LayoutParameters; localLayoutParams.Width= i; localLayoutParams.SetMargins(-i, 0, 0, 0); this.slider.LayoutParameters = localLayoutParams; this.progressAnimator = this.slider.Animate().TranslationX(i).SetDuration(paramLong).SetInterpolator(paramTimeInterpolator).SetListener(paramAnimatorListener); }