Comments (7)
加载更多样式能自定义吗
from lrecyclerview.
设置下拉刷新样式:
mRecyclerView.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader); //设置下拉刷新Progress的样式
mRecyclerView.setArrowImageView(R.drawable.iconfont_downgrey); //设置下拉刷新箭头
AVLoadingIndicatorView库有多少效果,LRecyclerView就支持多少下拉刷新效果,当然你也可以自定义下拉刷新效果。
progress的颜色与你的主题设置有关,也就是@color/colorAccent的定义。
自定义下拉效果可以参考源码实现,后续会出demo实现!
from lrecyclerview.
自定义头部刷新是参考ArrowRefreshHeader吗?然后修改后还得替换LRecyclerViewAdapte中的ArrowRefreshHeader是吧?
from lrecyclerview.
替换也可以,你也可以在本地app自定义,放在本地!具体效果我没有试过,如果你自定义好了,没有问题,可以发给我,我可以作为demo放到源码里面,帮助更多的人!
from lrecyclerview.
我最后只是修改了ArrowRefreshHeader,本地自定义还是不懂。
我发现下拉阻力有点大,我就在Lrecyclerview的case MotionEvent.ACTION_MOVE:方法里,修改成1.5倍感觉下拉会比较顺滑
mRefreshHeader.onMove((int)(deltaY / DRAG_RATE*1.5));
from lrecyclerview.
我试一下!
from lrecyclerview.
DRAG_RATE改为2了,到时候看看反馈效果!
from lrecyclerview.
Related Issues (20)
- LRecyclerView有线性管理器和瀑布流管理器的切换功能么
- 每次使用下拉刷新后,接下来上拉加载的View都不能出现 HOT 1
- 请问如何替换头部?
- SectionAnimalActivity有问
- 不满一屏不能上拉加载更多,Demo也不行
- refreshComplete奔溃
- 上拉加载更多加载完成FooterView不能自动隐藏 HOT 2
- android X 下适配问题
- 强制刷新问题 HOT 1
- 不支持局部刷新
- 关于setNomore()方法 HOT 1
- 关于setNoMore
- demo中的滑动冲突问题 为啥直接忽略了?
- 1.5.4.3设置paddingTop后无法下拉刷新
- 怎么局部刷新
- 能同时支持左右滑动么,Demo里面怎么只能选一种滑动?
- 混淆后偶尔会下拉刷新失效
- 不显示上拉加载更多的footview HOT 2
- 远程依赖最新版本(1.5.3)与从该库下载后导入本地的源代码不一致
- ExpandableActivity中显示错乱
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 lrecyclerview.