private void ShowPasswordContent(object sender, EventArgs e) { if (!PasswordText.IsSecure) { PasswordText.SetSecure(InputType.Password); PasswordWatchImage.SetImageColorFilter(ColorConstants.ButtonGray); PasswordText.SetFont(FontsConstant.RobotoRegular, FontsConstant.Size16); } else { PasswordText.SetSecure(InputType.Password); PasswordWatchImage.SetImageColorFilter(ColorConstants.WhiteColor); PasswordText.SetFont(FontsConstant.RobotoRegular, FontsConstant.Size16); } }
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); }