In Android Password having four individual fields is not showing previous field as dot when moving to next field using requestfocus() in textwatcher
<p>In android i have  a requirement of Password with four single number fields and i have used four edittext views. If we enter 4 numbers it has automaically fill the four fields. I have done this by using addTextChangedListener. But my password fileds are not replaced by dots except the problem. I think because of using requestfocus() to next field previous field is not converting dot. Please help me.</p>

<pre><code>  passInput1.addTextChangedListener(new CustomTextWatcher(passInput1, passInput2));
  passInput2.addTextChangedListener(new CustomTextWatcher(passInput2, passInput3));
  passInput3.addTextChangedListener(new CustomTextWatcher(passInput3, passInput4));
</code></pre>

<p>and My CustomWatcher is shown below.</p>

<pre><code>  public class CustomTextWatcher implements TextWatcher {
  private EditText currentEditTextFiledId;
  private EditText nextEditTextFiledId;

     public CustomTextWatcher(EditText currentEditTextFiledId, EditText  nextEditTextFiledId) { 
    this.currentEditTextFiledId = currentEditTextFiledId;
    this.nextEditTextFiledId = nextEditTextFiledId;
}

public void beforeTextChanged(CharSequence s, int start, int count, int after) {
     currentEditTextFiledId.setTransformationMethod(PasswordTransformationMethod.getInstance());
}

public void onTextChanged(CharSequence s, int start, int before, int count) {
     Integer textlength1 = currentEditTextFiledId.getText().length();


     if (textlength1 &gt;= 1) { 

         nextEditTextFiledId.requestFocus();

     }
}

public void afterTextChanged(Editable s) {

}
</code></pre>

<p>}</p>
