RecyclerView数据随机变化的问题

The problem that the data of RecyclerView changes randomly

(图 1 和图 2)


(图 3)


我目前正在使用 Epoxy library 而不是 RecyclerView。 但是,由于Epoxy是建立在RecyclerView的基础上的,所以我们就叫它RecyclerView.

问题一。 (图 1 和图 2)

When i return to another screen after entering a value in the EditText of the RecyclerView item, the entered data is moved randomly.

问题二。 (图 3)

After adding enough items to be scrollable, i also enter values ​​into the EditText. And if i scroll down and come back, the data is moved to a random location.

请告诉我是什么原因,什么是正确的解决方案。

确保您正确覆盖 getItemViewTypegetItemIdgetItemCount