After months of searching, I found one solution to the above problems.
I will explain step by step
First of all, you should use the code of the TwoWay-View library, not jar.
- Open the library layout folder.
- Browse the
org.lucasr.twowayview.widget package - Open
BaseLayoutManager class - Go to
Line no. 362 Line no. 362 You will find the code as
if (anchorItemPosition > 0 && (refreshingLanes || !restoringLanes)) {
replace this line with this
if (anchorItemPosition > 0 && refreshingLanes && !restoringLanes) {
The above change in the BaseLayoutManager class works for me as a solution to the above problems.
We hope this helps you all TwoWay-View users.
source share