How to switch between hide and view password in Xamarin Android on button click? : private void _viewPassword_Click(object sender, EventArgs e)
        {
            EditText _editTextNew = FindViewById<EditText>(Resource.Id.editTxtPwd_signup);
            //_editTextNew.InputType = Android.Text.InputTypes.TextVariationPassword | Android.Text.InputTypes.ClassText;
            if (_editTextNew.InputType== Android.Text.InputTypes.TextVariationPassword)
            {
                _editTextNew.InputType = Android.Text.InputTypes.ClassText;
                _editTextNew.SetSelection(_editTextNew.Text.Length);
            }
            else if(_editTextNew.InputType == Android.Text.InputTypes.ClassText)
            {
                _editTextNew.InputType = Android.Text.InputTypes.TextVariationPassword;
                _editTextNew.SetSelection(_editTextNew.Text.Length);
            }                                          
        } private void _viewPassword_Click(object sender, EventArgs e)
        {
            EditText _editTextNew = FindViewById<EditText>(Resource.Id.editTxtPwd_signup);
            //_editTextNew.InputType = Android.Text.InputTypes.TextVariationPassword | Android.Text.InputTypes.ClassText;
            if (_editTextNew.InputType== Android.Text.InputTypes.TextVariationPassword)
            {
                _editTextNew.InputType = Android.Text.InputTypes.ClassText;
                _editTextNew.SetSelection(_editTextNew.Text.Length);
            }
            else if(_editTextNew.InputType == Android.Text.InputTypes.ClassText)
            {
                _editTextNew.InputType = Android.Text.InputTypes.TextVariationPassword;
                _editTextNew.SetSelection(_editTextNew.Text.Length);
            }                               
           
        private void _viewPassword_Click(object sender, EventArgs e)
        {
            EditText _editTextNew = FindViewById<EditText>(Resource.Id.editTxtPwd_signup);
            //_editTextNew.InputType = Android.Text.InputTypes.TextVariationPassword | Android.Text.InputTypes.ClassText;
            if (_editTextNew.InputType== Android.Text.InputTypes.TextVariationPassword)
            {
                _editTextNew.InputType = Android.Text.InputTypes.ClassText;
                _editTextNew.SetSelection(_editTextNew.Text.Length);
            }
            else if(_editTextNew.InputType == Android.Text.InputTypes.ClassText)
            {
                _editTextNew.InputType = Android.Text.InputTypes.TextVariationPassword;
                _editTextNew.SetSelection(_editTextNew.Text.Length);
            }                               
           
        }