android - Setting input type in EditTextView programmatically makes the cursor go back to the start of EditTextView -


when user typed # in edittextview set input type inputtype.type_text_variation_visible_password. doing effect cursor going start of edittextview.

you should able add following after setting input type

edittext.setselection(edittext.gettext().length()); 

i know it's not ideal i'm pretty sure it's way behavior want.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -