Giter Club home page Giter Club logo

Comments (4)

LvBing1995 avatar LvBing1995 commented on June 3, 2024

recycleView无法取消,但是HorizontalScrollView可以

from smoothrefreshlayout.

dkzwm avatar dkzwm commented on June 3, 2024

手指抬起时位置达到超过触发刷新的位置就会触发刷新,没有取消的操作

from smoothrefreshlayout.

LvBing1995 avatar LvBing1995 commented on June 3, 2024

手指抬起时位置达到超过触发刷新的位置就会触发刷新,没有取消的操作

找到原因了,可能是焦点问题,我把您的Demo中HorizontalRecyclerViewAdapter类里把mTextView.setOnClickListener和mTextView.setOnLongClickListener注释掉后,我执行刷新取消操作会出现问题。手势步骤:1.手指先右滑让刷新的header出来 2.继续往右这个时候如果我抬起手指那么会促发刷新方法,但是我不抬起手指而是把手指往左滑想取消此次手势操作,但是这个时候会促发刷新。但是点击事件写了后就不会出现这个问题。

from smoothrefreshlayout.

dkzwm avatar dkzwm commented on June 3, 2024

不好意思,你按需更新下如下依赖,应该可以修复你说的问题了。

implementation 'com.github.dkzwm:srl-core:1.7.2.1'
implementation 'com.github.dkzwm:srl-ext-classics:1.7.2.1'
implementation 'com.github.dkzwm:srl-ext-material:1.7.2.1'
implementation 'com.github.dkzwm:srl-ext-dynamic-rebound:1.7.2.1'
implementation 'com.github.dkzwm:srl-ext-horizontal:1.7.2.1'
implementation 'com.github.dkzwm:srl-ext-two-level:1.7.2.1'
implementation 'com.github.dkzwm:srl-ext-util:1.7.2.1'

from smoothrefreshlayout.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.