Exemplo n.º 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);
            });
        }