public bool OnTouch(View v, MotionEvent e) { if (v is EditText && e.get_Action() == 1) { EditText editText = (EditText)v; if ((double)e.get_RawX() >= (double)(((View)editText).get_Right() - ((TextView)editText).GetCompoundDrawables()[2].get_Bounds().Width())) { if (((TextView)editText).get_TransformationMethod() == null) { ((TextView)editText).set_TransformationMethod((ITransformationMethod)PasswordTransformationMethod.get_Instance()); ((TextView)editText).SetCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, 2131165500, 0); } else { ((TextView)editText).set_TransformationMethod((ITransformationMethod)null); ((TextView)editText).SetCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, 2131165501, 0); } editText.SetSelection(((TextView)editText).get_Text().Length); return(false); } } return(false); }