I have Edittext where i set spannable text into it and i want the cursor at the end of spannable text . so that user can input manuuly from key board.
i have already tried
ObjectOfEdietext.setSelection(ObjectOfEdietext.getText().lenght());
but it is not working for me. but if i set normal text on the Editext and do the same, it works well. Can anyone point out whats the problem??
thanks in advance
Edited Here i found the problem that LinkMovementMethod which i have set on edit text for making span text clickable, is disabling edittext cursor. Another big problem after i faced is when i set clickable spanned text on edittext then cursor move to 0 postion so i am unable to move cursor at the end of text to add text from keyboard ! has anyone faced such problem before?
try this code
i have personally tried with following code and its working