How to make a EditText work correctly in a ListView?
- by TianDong
Hallo all,
I have a ListView, which contains an EditText in each of it's row. I also have an Array.The length of the Array==the Nr of the rows in the ListView.
I want to store the user input (the text in the EditText) to the Arrray. E.g, if i type some text in the EditText in the first row of the ListView, i want the text to be stored in Array[0]. But how can i detect to which row the EditText belongs to? I can detect the possition of the row if the row contains a RadioGroup, but not a EditText.
What if i first type some text in the EditText and sometime later i want to update mein Input? How can i update it?
Thanks a lot!