Edit text for OTP with Each letter in separate positions
In Android above mentioned link have already given the correct answer but "android:inputType=numberPassword"
is not working and the cursor is not showing up.
anyhow I managed to show start instead of numbers using the below code
private String convertToStar(){
Editable editable = getText();
Helper.v("OTPEditText","OTP getText["+editable.toString()+"]");
StringBuilder retStr = new StringBuilder();
int i=0;
while(i<editable.length()){
retStr.append("*");
i++;
}
return retStr.toString();
}
But still cursor is not visible. Any help?