Ejemplo n.º 1
0
        private void RegisterProtectedTextView(TextView protectedTextView, TextView visibleTextView)
        {
            var protectedTextviewGroup = new ProtectedTextviewGroup {
                ProtectedField = protectedTextView, VisibleProtectedField = visibleTextView
            };

            _protectedTextViews.Add(protectedTextviewGroup);
            SetPasswordStyle(protectedTextviewGroup);
        }
Ejemplo n.º 2
0
        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;
        }