I'm a developer who is passionate about Android and front-end. This is my homepage.
shichaohui / animrefreshrecyclerview Goto Github PK
View Code? Open in Web Editor NEW下拉刷新和上拉加载更多的RecyclerView,具有下拉和刷新动画。
下拉刷新和上拉加载更多的RecyclerView,具有下拉和刷新动画。
I'm a developer who is passionate about Android and front-end. This is my homepage.
设置了
mRecyclerView.addHeaderView(headerView);
// 设置头部的最大拉伸倍率,默认1.5f,必须写在setHeaderImage()之前
mRecyclerView.setScaleRatio(1.7f);
// 设置下拉时拉伸的图片,不设置就使用默认的
mRecyclerView.setHeaderImage((ImageView) headerView.findViewById(R.id.iv_hander));
打开app,首次进入调用mRecyclerView.setRefresh(true);
进度条和图片有覆盖情况怎么搞?
如果刚启动不想设置为自动刷新的话,此时的rfAnimView.setVisibility(GONE);会导致nullPointer异常 应该在此处添加一个判空处理
能否提供 com.android.support:recyclerview-v7:23.1.0 这个版本的jar包?
Failed to resolve: com.sch.rfview:AnimRefreshRecyclerView:1.0.6
拉取不了哦,配置了镜像也不行
repositories {
maven { url 'https://maven.aliyun.com/repository/public' }//jcenter
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }//gradle-plugin
maven { url 'https://maven.aliyun.com/repository/central' }//central
maven { url 'https://maven.aliyun.com/repository/google' }//google
google()
mavenCentral()
}
我该怎么办啊,我电脑是可以访问谷歌的
快速频繁下拉会造成空指针问题
java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.ViewGroup$LayoutParams android.view.View.getLayoutParams()' on a null object reference
at com.sch.rfview.AnimRFRecyclerView.layoutStaggeredGridHeadAttach(AnimRFRecyclerView.java:308)
at com.sch.rfview.AnimRFRecyclerView.run(AnimRFRecyclerView.java:288)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:155)
at android.app.ActivityThread.main(ActivityThread.java:5702)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824)
怎样去掉那个圆圈的动画?我注释了代码好像还是不行
直接在布局中使用运行报错,可以贴一下直接在布局使用的demo吗?
在setLoadDataListener时 做下拉操作会执行重写的onrefresh 与 onloadMore方法,而不是在下拉执行Onrefresh 在上拉执行onloadMore ,应该如何解决呢
顺便问问po主,这个
dependencies {
compile 'com.sch.rfview:AnimRefreshRecyclerView:1.0.1'
}
是怎么做的呢。我也想写个库,但无奈不知道这个是怎么做成的。
refreshComplete中对AnimView没有做非空判断 有时会崩溃
AnimRFLinearLayoutManager animRFLinearLayoutManager = new AnimRFLinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false);
mRecyclerView.setLayoutManager(animRFLinearLayoutManager);
// 设置列表布局的分割线
mRecyclerView.addItemDecoration(new DividerItemDecoration(this, animRFLinearLayoutManager.getOrientation(), true));
这样写应该没问题吧 都是没有回弹的效果了
下拉刷新似乎和自定义的onItemClick冲突,有没有什么办法解决啊???
宫格列表下拉动画没有效果
红米note3 MIUI 7 6.1.14|开发版
Android5.0.2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.