reny

Results 4 comments of reny

我目前是这么写的: final boolean[] canRefresh = {true}; pfl.setPtrHandler(new PtrDefaultHandler() { @Override public void onRefreshBegin(PtrFrameLayout frame) { presenter.loadData(true); } @Override public boolean checkCanDoRefresh(PtrFrameLayout frame, View content, View header) { if(content instanceof LRecyclerView){...

@MelvinCen 最后没有用这个库了,使用这个[https://github.com/scwang90/SmartRefreshLayout](url) + 原生RecyclerView

我也遇到类似的问题,不知道这个问题有没有解决,自定义的策略好像不起作用了,isAutoInstall 返回 false 没有任何作用,会自动弹出安装,我没有测试低版本的手机。

源码中:@Override public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { if (state.getItemCount() == 0 || state.isPreLayout()) return; removeAndRecycleAllViews(recycler); if (!mHasChild) { mItemViewHeight = getVerticalSpace(); mItemViewWidth = (int) (mItemViewHeight / mItemHeightWidthRatio); mHasChild =...