和SmartRefreshLayout刷新嵌套下拉header部分有问题!
MIkeeJY opened this issue · comments
MIkeeJY commented
直接Demo里集成 compile 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-alpha-20' 发现下拉header会直接出发刷新导致header无法显示完全
MIkeeJY commented
找到办法了 最新版的解决办法设置滚动边界判断,记录下希望能帮到大家
mRefresh.setScrollBoundaryDecider(new ScrollBoundaryDeciderAdapter() {
@Override
public boolean canRefresh(View content) {
return mScrollableLayout.isCanPullToRefresh();
}
});