Two way View is a powerful library to customize grid of components a using RecyclerView
Below is the screenshot of problem that we are facing while using this library,so i find out the resolution of that problem,
Reference Question
Padding problem #140
Items changing height results in empty space #156
Other questions related to this issue could be
Q:1 - Gridview items changing order upon scrolling
Q:2 -UI mess while loading image with UniversalImageLoader
After searching a couple of months ,I found one solution for above issues.
I am going to explain step by step
First of all keep you must use code of TwoWay-View library not jar.
- Open layout folder of library.
- Browse the package
org.lucasr.twowayview.widget
- Open
BaseLayoutManager
class
- Jump to
Line no. 362
You will found code as
if (anchorItemPosition > 0 && (refreshingLanes || !restoringLanes)) {
replace this line by this one
if (anchorItemPosition > 0 && refreshingLanes && !restoringLanes) {
Above change in BaseLayoutManager class
work for me as a solution to above mentioned issues.
Hope this will help you all TwoWay-View users.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With