Exemplo n.º 1
0
            public LoadingBarController(View flashBarView)
            {
                barView = flashBarView;
                barAnimator = barView.Animate ();
                messageView = barView.FindViewById<TextView> (Resource.Id.loadingBarMessage);

                HideBar (true);
            }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 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);
 }