我的recyclerview
标签中有fragment
,1声明变量
mLayoutManager = new LinearLayoutManager (Context)
在OnCreate
方法中,在Recyclerview
我制作
scrollListener var = new scroll (mLayoutManager);
这两个都需要mLinearlayoutmanagers是相同的,如果有错误.. 这种情况
mLayoutManager = new LinearLayoutManager(Context);
var scrollListener = new scroll(mLayoutManager);
// This successful working properly
mRecyclerView.SetLayoutManager(mLayoutManager);
// This successful but if in the tab on the move will occur error but I found the solution
mRecyclerView.AddOnScrollListener(scrollListener);
成功但......:
//mLayoutManager = new LinearLayoutManager(Context);
var scrollListener = new scroll(mLayoutManager); // not working properly
mRecyclerView.SetLayoutManager(new LinearLayoutManager(Context));
// this successful if in the tab on the move will not be an error.
mRecyclerView.AddOnScrollListener(scrollListener);
任何人都可以帮助我...... ??