Set Cursor Position in custom edittext
I have a custom EditText which is empty and I want to set the cursor position using the co-ordinates(x,y) i get from ontouch event. Wherever I touch i should be able to move the cursor to that position and should be able to type the text from there. Help me out...
Selection.setSelection (Spannable text, int index);