0

I have a listView with a edittext in all the rows of the listView and i want get all the changed editText values when i clicked to a button which is in same layout but is not part of the listView.

Please help me.

4

1 回答 1

1

如果您正确构建了适配器,您的 EditText 将被回收,因此您的所有项目都不会有一个 EditText。相反,您应该在每次更新 EditText(使用侦听器)时将数据保存到支持数组。当用户单击按钮时,您应该从支持数组中读取数据,而不是实际的 ListView 视图。

于 2013-01-18T14:31:29.600 回答