You can use setTag and getTag to find out the position of the Editext Inside Listview. Inside the getView method use setTag
editText.setTag (position).
And where you wrote the listener, just use getTag for the position.
I have another requirement why I used the OnTouch listener. But to achieve the above requirement that you mentioned, you need to use Textwatcher. same thing you need to use.
Inside the listener:
int position = (Integer) view1.getTag ();
This position is unique for each row of the ListView.
You need to do setTag Inside the getView () method of the BaseAdapter class. after line if (rowview == null) {}
source share