private void RegisterProtectedTextView(TextView protectedTextView, TextView visibleTextView) { var protectedTextviewGroup = new ProtectedTextviewGroup { ProtectedField = protectedTextView, VisibleProtectedField = visibleTextView }; _protectedTextViews.Add(protectedTextviewGroup); SetPasswordStyle(protectedTextviewGroup); }
private void SetPasswordStyle(ProtectedTextviewGroup group) { group.VisibleProtectedField.Visibility = _showPassword ? ViewStates.Visible : ViewStates.Gone; group.ProtectedField.Visibility = !_showPassword ? ViewStates.Visible : ViewStates.Gone; SetPasswordTypeface(group.VisibleProtectedField); group.ProtectedField.InputType = InputTypes.ClassText | InputTypes.TextVariationPassword; }