How to make a EditText work correctly in a ListView?

Posted by TianDong on Stack Overflow See other posts from Stack Overflow or by TianDong
Published on 2010-06-08T20:59:20Z Indexed on 2010/06/08 21:02 UTC
Read the original article Hit count: 218

Filed under:
|
|

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!

© Stack Overflow or respective owner

Related posts about android

Related posts about listview