EditText in ListView is updated by onTextChanged when scrolling

前端 未结 3 1433
失恋的感觉
失恋的感觉 2021-02-09 09:06

I have been searching for an answer to this, but the solutions don\'t seem to work for me. I have a TextView and an EditText in a list item. I am trying to update the stored v

3条回答
  •  甜味超标
    2021-02-09 09:33

    Check your index value if it matches with the row position you are working on. If you use the holder pattern maybe that value wont change from 0 to 7-8 depending in your screen size. Something like that happened to me once, I think I solved it by implementing the getCount method. This way the row 50 gave me the position 50 and not 7 (for example).

提交回复
热议问题