I'm going to give a generalised solution instead of the positions for 0/1 etc..
So for performing such operations do the following steps:
1.Change from ListView To RecyclerView.
2.RecyclerView Forces developer to follow view holder pattern (I assume you know what view holder pattern is if not you can google it)
So in your recyclerview whenever user clicked on a row you will have the clicked position.
use the following method to get the view for particular position
myRecyclerView.findViewHolderForAdapterPosition(pos);
here pos
is the recyclerview row where you want to edit the edittext value.
Here is the trickiest part.
As recyclerview uses viewholder pattern, the above method may return null if is not in the viewport(i:e; If it is not seen in the screen)
if myRecyclerView.findViewHolderForAdapterPosition(pos);
this method returns a view well and good (view is currently in pool and is accessible)
If not it returns null, so what you need to do is remember the event and when user scrolls you will get the currently shown position if the currently shown position matches the view to be updated then update your edittext.
Actually once i faced the same scenario and this is how i solved it.
Comment below if you have any doubts.
I case if you have only two rows in a list . myRecyclerView.findViewHolderForAdapterPosition(pos);
this method will never return false unless your each row is of screen size.