Example #1
0
        void ProcessLoginDetails(object sender, EventArgs e)
        {
            loginBtn.Enabled = false;
            password.Enabled = false;
            username.Enabled = false;

            statusProgress.Alpha      = 0;
            statusProgress.Visibility = ViewStates.Visible;
            if (statusText.Visibility == ViewStates.Visible)
            {
                statusText.AlphaAnimate(0, endAction: () => {
                    statusText.Visibility = ViewStates.Gone;
                    statusProgress.AlphaAnimate(1);
                });
            }
            else
            {
                statusProgress.Animate().Alpha(1).Start();
            }

            newCredentials.SetResult(new RentalCrendentials {
                Username = username.Text,
                Password = password.Text
            });
        }