Hey guys,
Not sure if this is possible but I'm curious if there is a way to determine the position of the cursor in the EditText? I know you can insert anything at the point of the cursor (or selection) with EditText.textselection. What I'm interested in doing is figuring out the position of the cursor so that I can compare the text before the cursor to the text after the cursor. Basically I want my program to be able to look at inputted text and determine if, when typing in an opening brace ( { ) that there isn't already a closing brace ( } ) and if there isn't, automatically add one. I want to implement my own version of auto complete with some other custom solutions rolled in.
Thanks!
Calvin