Comments (4)
recycleView无法取消,但是HorizontalScrollView可以
from smoothrefreshlayout.
手指抬起时位置达到超过触发刷新的位置就会触发刷新,没有取消的操作
from smoothrefreshlayout.
手指抬起时位置达到超过触发刷新的位置就会触发刷新,没有取消的操作
找到原因了,可能是焦点问题,我把您的Demo中HorizontalRecyclerViewAdapter类里把mTextView.setOnClickListener和mTextView.setOnLongClickListener注释掉后,我执行刷新取消操作会出现问题。手势步骤:1.手指先右滑让刷新的header出来 2.继续往右这个时候如果我抬起手指那么会促发刷新方法,但是我不抬起手指而是把手指往左滑想取消此次手势操作,但是这个时候会促发刷新。但是点击事件写了后就不会出现这个问题。
from smoothrefreshlayout.
不好意思,你按需更新下如下依赖,应该可以修复你说的问题了。
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)
- Could not resolve all files for configuration ':app:debugCompileClasspath'. HOT 6
- Cannot resolve method transformPointToViewLocal in ViewGroup HOT 1
- [QUESTION] How to stop footer scaling? HOT 3
- Demo 中 CoordinatorLayout 中 包含 RecyclerView 界面 AppBarLayout visibility设置为 GONE之后下拉失效 HOT 3
- 空指针异常canChildScrollDown HOT 3
- 是否支持嵌套viewpager HOT 1
- New Android 12 non-sdk restrictions are coming HOT 2
- 与 AppBarLayout + ViewPager 配合使用后的滚动问题 HOT 5
- 多层嵌套出现冲突 HOT 1
- 刷新view问题 HOT 7
- recycylerview数据比较大的时候,数据直接无法显示(106),降低数据量就可以(30条)。需要优先配置什么参数吗? HOT 6
- ColorOS 12 上发生的问题(可持续复现) HOT 12
- 无法拉取到依赖 HOT 3
- 横向加载 loadmore 能否指定加载左侧还是右侧 HOT 7
- https://github.com/13120241790/GridPagerHelper
- 频繁刷新出现Layout state should be one of 100 but it is 10问题 HOT 1
- 能否出一个kotlin版本? HOT 1
- 设置setEnablePinContentView为true时,执行加载更多后的显示细节问题 HOT 2
- 作者兼容下SDK33呗,自定义view中很多方法不能用了比如transformPointToViewLocal啊这种 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smoothrefreshlayout.