コード例 #1
0
        private void UpdateRecordUI()
        {
            //Duration Label
            if (IsRecording)
            {
                _durationLabel.FadeIn();
            }
            else
            {
                _durationLabel.FadeOut(500);
            }

            //Border
            if (IsRecording)
            {
                _border.FadeIn();
            }
            else
            {
                _border.FadeOut(500);
            }


            //Record Button
            _recordButton.FadeOut(250, 0, () =>
            {
                //Switch image
                int button = (IsRecording) ? Resource.Drawable.selector_button_stop : Resource.Drawable.selector_button_record;
                _recordButton.SetImageDrawable(ContextCompat.GetDrawable(ApplicationContext, button));
                _recordButton.FadeIn(250);
            });
        }
コード例 #2
0
 void HandleRecordingStatusUpdated(object sender, EventArgs e) {
     if(SensingService.ViewModel != null) {
         UpdateRecordButtonUi();
         UpdateSetupUi();
         if(SensingService.ViewModel.IsRecording) {
             //Remove internal error message when switching to recording status
             _bottomInfoDisplayer.Hide(InformationMessage.InternalEngineError);
             _bottomInfoDisplayer.ShowButton(false);
             _textCurrPpe.FadeIn(FadeInDelay);
             _containerSetup.FadeIn(FadeInDelay);
         }
         else {
             _bottomInfoDisplayer.HideButton(false);
             _textCurrPpe.FadeOut(FadeOutDelay);
             _containerSetup.FadeOut(FadeOutDelay);
         }
     }
 }
コード例 #3
0
ファイル: HomeView.cs プロジェクト: IainS1986/PinupMobile
        private void IntroAnimation()
        {
            //Fade in Wheel
            _imageView.FadeIn();

            if (_gameTitle.Visibility == ViewStates.Visible)
            {
                _gameTitle.FadeIn();
            }

            //Animate buttons in sequence
            for (int i = 0; i < _buttons.Length; i++)
            {
                _buttons[i].FadeIn(250, 100 + (100 * i));
            }

            _introPlayed = true;
        }