We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<cn.bingoogolapple.refreshlayout.BGARefreshLayout android:id="@+id/mRefreshLayout" style="@style/MatchMatch"> <android.support.v7.widget.RecyclerView android:id="@+id/rv" style="@style/MatchMatch"
android:overScrollMode="never" android:paddingLeft="@dimen/dimen2" android:paddingRight="@dimen/dimen2" android:scrollbars="none" tools:listitem="@layout/item_mystrategy" /> </cn.bingoogolapple.refreshlayout.BGARefreshLayout>
下拉刷新的时候,会产生冲突,RecyclerView做瀑布流的时候未滑动到顶部,下拉就会刷新了
The text was updated successfully, but these errors were encountered:
StaggeredGridLayoutManager layoutManager = (StaggeredGridLayoutManager) manager;
int[] out = layoutManager.findFirstCompletelyVisibleItemPositions(null); if (out[0] < 1 ) { return true; }
是由于这里判断错误导致的BGARefreshScrollingUtil 判断isRecyclerViewToTop是否到顶部导致的错误 建议在添加 if (out[0] < 1 && !recyclerView.canScrollVertically(-1)) { return true; } 完美解决问题
Sorry, something went wrong.
当item未展示全时,执行isRecyclerViewToTop=true out[0]==-1,这样就造成了以上问题,将判断改为out[0]==0是不是就可以了
No branches or pull requests
<cn.bingoogolapple.refreshlayout.BGARefreshLayout
android:id="@+id/mRefreshLayout"
style="@style/MatchMatch">
<android.support.v7.widget.RecyclerView
android:id="@+id/rv"
style="@style/MatchMatch"
下拉刷新的时候,会产生冲突,RecyclerView做瀑布流的时候未滑动到顶部,下拉就会刷新了
The text was updated successfully, but these errors were encountered: