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' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -