예제 #1
0
 private void LinePassword()
 {
     PasswordLineText?.SetBackgroundColor(ColorConstants.SelectorHome);
     EmailLineText?.SetBackgroundColor(ColorConstants.WhiteColor);
 }
예제 #2
0
 private void LineEmail()
 {
     EmailLineText?.SetBackgroundColor(ColorConstants.SelectorHome);
     PasswordLineText?.SetBackgroundColor(ColorConstants.WhiteColor);
     PasswordRepeatLineText?.SetBackgroundColor(ColorConstants.WhiteColor);
 }
예제 #3
0
        private void InitViews()
        {
            LogoImage?.SetImageFromResource(DrawableConstants.LogoIcon);
            BackroundImage?.SetImageFromResource(DrawableConstants.SignBackround);

            if (PasswordWatchImage != null)
            {
                PasswordWatchImage?.SetImageFromResource(DrawableConstants.ShowPassword);
                PasswordWatchImage.SetImageColorFilter(ColorConstants.ButtonGray);

                PasswordWatchImage.Click -= ShowPasswordContent;
                PasswordWatchImage.Click += ShowPasswordContent;
            }

            if (EmailPlaceholderText != null)
            {
                EmailPlaceholderText.Text = RSign.SignEmailText;
                EmailPlaceholderText.SetFont(FontsConstant.RobotoRegular, FontsConstant.Size15);
                EmailPlaceholderText.SetTextColor(ColorConstants.ButtonGray);
            }

            if (EmailText != null)
            {
                EmailText.SetTextColor(ColorConstants.WhiteColor);
                EmailText.SetCursorColor(ColorConstants.SelectorHome);

                EmailText.Focus -= LineEmail;
                EmailText.Focus += LineEmail;
                EmailText.SetFont(FontsConstant.RobotoRegular, FontsConstant.Size16);
            }

            EmailLineText?.SetBackgroundColor(ColorConstants.WhiteColor);

            if (PasswordPlaceholderText != null)
            {
                PasswordPlaceholderText.Text = RSign.SignPasswordText;
                PasswordPlaceholderText.SetFont(FontsConstant.OpenSansRegular, FontsConstant.Size15);
                PasswordPlaceholderText.SetTextColor(ColorConstants.ButtonGray);
            }

            if (PasswordText != null)
            {
                PasswordText.SetTextColor(ColorConstants.WhiteColor);
                PasswordText.SetSecure(InputType.Password);
                PasswordText.SetFont(FontsConstant.OpenSansRegular, FontsConstant.Size16);
                PasswordText.SetCursorColor(ColorConstants.SelectorHome);

                PasswordText.Focus -= LinePassword;
                PasswordText.Focus += LinePassword;
            }

            PasswordLineText?.SetBackgroundColor(ColorConstants.WhiteColor);

            if (PasswordForgotText != null)
            {
                PasswordForgotText.Text = RSign.SignForgotText;
                PasswordForgotText.SetTextColor(ColorConstants.WhiteColor);
                PasswordForgotText.SetFont(FontsConstant.RobotoRegular, FontsConstant.Size15);
            }

            if (SignInText != null)
            {
                SignInText.Text = RSign.SignSignInText.ToUpperInvariant();
                SignInText.SetTextColor(ColorConstants.WhiteColor);
                SignInText.SetBackgroundColor(ColorConstants.SelectorHome);
                SignInText.SetSelectedColor(ColorConstants.WhiteColor);
                SignInText.SetFont(FontsConstant.RobotoBold, FontsConstant.Size14);
            }

            if (RegistrationDontAccountText != null)
            {
                RegistrationDontAccountText.Text = RSign.SignNotHaveAccount;
                RegistrationDontAccountText.SetTextColor(ColorConstants.WhiteColor);
                RegistrationDontAccountText.SetFont(FontsConstant.RobotoRegular, FontsConstant.Size15);
            }

            if (SignUpText != null)
            {
                SignUpText.Text = RSign.SignSignUpText;
                SignUpText.SetTextColor(ColorConstants.SelectorHome);
                SignUpText.SetFont(FontsConstant.RobotoRegular, FontsConstant.Size15);

                SignUpText.Click -= SignUp_Click;
                SignUpText.Click += SignUp_Click;
            }

            if (ConnectFacebookText != null)
            {
                ConnectFacebookText.Text = RSign.SignWithFacebook.ToUpperInvariant();
                ConnectFacebookText.SetTextColor(ColorConstants.WhiteColor);
                ConnectFacebookText.SetBackgroundColor(ColorConstants.BlueFacebookColor);
                ConnectFacebookText.SetSelectedColor(ColorConstants.WhiteColor);
                ConnectFacebookText.SetFont(FontsConstant.MontserratBold, FontsConstant.Size12);
            }

            ConnectFacebookImage?.SetImageFromResource(DrawableConstants.FacebookLogo);
            FacebookContent?.SetBackgroundColor(ColorConstants.BlueFacebookColor);
        }
예제 #4
0
        public override void UpdateData()
        {
            base.UpdateData();

            BackroundImage?.SetBackgroundColor(ColorConstants.GrayCreateAccountColor);

            if (TitleText != null)
            {
                TitleText.Text = RCreate.CreateAccountText;
                TitleText.SetFont(FontsConstant.OpenSansRegular, FontsConstant.Size34);
                TitleText.SetTextColor(ColorConstants.WhiteColor);
            }

            if (NotePolicyText != null)
            {
                NotePolicyText.Text = RCreate.CreateAgreeContentText;
                NotePolicyText.SetFont(FontsConstant.OpenSansRegular, FontsConstant.Size12);
                NotePolicyText.SetTextColor(ColorConstants.WhiteColor);
                NotePolicyText.SetLinkAndStyle(new[] { RCreate.CreateTermsConditionText, RCreate.CreatePrivacyPolicyText },
                                               new[] { "www.facebook.com", "www.facebook.com" },
                                               "color:" + ColorConstants.SelectorHome + "; text-decoration: none;");
            }


            if (EmailPlaceholderText != null)
            {
                EmailPlaceholderText.Text = RSign.SignEmailText;
                EmailPlaceholderText.SetFont(FontsConstant.OpenSansRegular, FontsConstant.Size15);
                EmailPlaceholderText.SetTextColor(ColorConstants.WhiteColor);
            }

            if (EmailText != null)
            {
                EmailText.SetTextColor(ColorConstants.WhiteColor);
                EmailText.SetFont(FontsConstant.OpenSansRegular);
                EmailText.SetCursorColor(ColorConstants.SelectorHome);

                EmailText.Focus -= LineEmail;
                EmailText.Focus += LineEmail;
            }

            EmailLineText?.SetBackgroundColor(ColorConstants.WhiteColor);

            if (PasswordPlaceholderText != null)
            {
                PasswordPlaceholderText.Text = RSign.SignPasswordText;
                PasswordPlaceholderText.SetFont(FontsConstant.OpenSansRegular, FontsConstant.Size15);
                PasswordPlaceholderText.SetTextColor(ColorConstants.WhiteColor);
            }

            if (PasswordText != null)
            {
                PasswordText.SetTextColor(ColorConstants.WhiteColor);
                PasswordText.SetFont(FontsConstant.OpenSansRegular);
                PasswordText.SetCursorColor(ColorConstants.SelectorHome);
                PasswordText.SetSecure(InputType.Password);

                PasswordText.Focus -= LinePassword;
                PasswordText.Focus += LinePassword;
            }

            PasswordLineText?.SetBackgroundColor(ColorConstants.WhiteColor);

            if (PasswordRepeatPlaceholderText != null)
            {
                PasswordRepeatPlaceholderText.Text = RCreate.CreateRepeatPasswordText;
                PasswordRepeatPlaceholderText.SetFont(FontsConstant.OpenSansRegular, FontsConstant.Size15);
                PasswordRepeatPlaceholderText.SetTextColor(ColorConstants.WhiteColor);
            }

            if (PasswordRepeatText != null)
            {
                PasswordRepeatText.SetTextColor(ColorConstants.WhiteColor);
                PasswordRepeatText.SetFont(FontsConstant.OpenSansRegular);
                PasswordRepeatText.SetCursorColor(ColorConstants.SelectorHome);
                PasswordText.SetSecure(InputType.Password);

                PasswordRepeatText.Focus -= LinePasswordRepeat;
                PasswordRepeatText.Focus += LinePasswordRepeat;
            }

            PasswordRepeatLineText?.SetBackgroundColor(ColorConstants.WhiteColor);

            if (SignUpText != null)
            {
                SignUpText.Text = RSign.SignSignUpText.ToUpperInvariant();
                SignUpText.SetTextColor(ColorConstants.WhiteColor);
                SignUpText.SetBackgroundColor(ColorConstants.SelectorHome);
                SignUpText.SetSelectedColor(ColorConstants.WhiteColor);
                SignUpText.SetFont(FontsConstant.OpenSansRegular, FontsConstant.Size14);
            }
        }