TwoWay View Add empty space automatically

北战南征 提交于 2019-11-30 05:48:32

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.

  1. Open layout folder of library.
  2. Browse the package org.lucasr.twowayview.widget
  3. Open BaseLayoutManager class
  4. Jump to Line no. 362
  5. 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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!