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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -