android-cjj / android-materialrefreshlayout Goto Github PK
View Code? Open in Web Editor NEWThis is a drop-down control, it is more beautiful and powerful than SwipeRefreshLayout
This is a drop-down control, it is more beautiful and powerful than SwipeRefreshLayout
上拉加载更多的时候,直接就出来了,没有进入的动画,并且不能像下拉刷新那样可以上划取消加载
三星A8设备 此控件影响 setOnItemClickListener 事件,导致无法正确的相应listview item 点击事件。
wave_show设置无效
如何改变加载进度条的大小
java.lang.NullPointerException
at com.cjj.g.run(MaterialHeadView.java:96)
at android.os.Handler.handleCallback(Handler.java:800)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5469)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:857)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
at dalvik.system.NativeStart.main(Native Method)
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.cjj.f.setProgressValue(int)' on a null object reference
at com.cjj.MaterialRefreshLayout.setProgressValue(MaterialRefreshLayout.java:393)
at com.cjj.MaterialRefreshLayout.g(MaterialRefreshLayout.java:484)
This does not seem to work: mMaterialRefreshLayout.setEnabled(false/true);
When refreshing we cant click on list view items. it freezes while refreshing? Is there any way to enable the listview (Clickable and scrollable) while refreshing?
这个问题能解答一下吗
1.进入列表的页面的时候不能直接下拉刷新,必须先滑动列表然后才能下拉刷新
2.刷新的时候列表不能滑动了
3.加载的时候还可以滑上去下拉刷新
4.加载的时候滑上去刷新 然后 就一直在加载中...
5.难道你自己不用的吗?
Is there some way to reduce the sensitivity as the application starts refreshing even if the swipe is too low? And this behavior is same in all devices.
The size of rotate indicator is bigger than the default size in SwipeRefreshLayout. And how change it?
Thanks:)
When the user pulls and releases arrows rotates and a "colored circle" appears before progress rotates. This glitch appears only on Marshmallow, on lower OS it works fine. I'll upload a gif/video in some time.
Please remove this generated folder. We don`t need it.
给ListView设置empty view之后,下拉刷新滑动失效
在fragment中 设置 app:overlay="true" 调用 autoRsfresh() 空指针
怎么禁止下拉刷新或者上拉加载呢?
Hi. My main activity contain fragment. Fragment contained RecycleView wrapped in MaterialRefreshLayout. Problem is (after I add MaterialRefreshLayout) than app start NavigationDrawerFragment home button view as UP button(back) instead Home button(open menu). Yet I do not understand why
根本不能用,建议别用
加载更多,执行两次或更多,什么原因
您好,请问自动加载更多如何实现呢?感觉现在上拉一下才能触发加载更多效果不是很好,自己尝试改了一下好多问题。。。T_T
报错代码
public void autoRefresh()
{
updateListener();
if(isOverlay)
{
mHeadLayout.getLayoutParams().height = (int) mHeadHeight;
mHeadLayout.requestLayout();
}else
{
createAnimatorTranslationY(mChildView, mHeadHeight, mHeadLayout);
}
}
在程序执行到mHeadLayout.getLayoutParams().height = (int) mHeadHeight; 时出现空指针
布局文件如下
<com.cjj.MaterialRefreshLayout
android:id="@+id/refresh"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/buyCarLayout"
android:layout_below="@id/productsOptions"
app:isLoadMore="true"
app:overlay="true"
app:wave_show="false">
<android.support.v7.widget.RecyclerView
android:id="@+id/products"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</com.cjj.MaterialRefreshLayout>
添加Header 是什么意思?
xml/java中设置waveShow没有效果,均会显示
waveColor设置颜色无效
<com.cjj.MaterialRefreshLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
app:overlay="true"
app:wave_color="@color/black"
app:wave_show="true ">
<ListView
android:layout_width="match_parent"
android:layout_height="match_parent" />
</com.cjj.MaterialRefreshLayout>
和viewpager滑动冲突。。。
1.3.0版本里没有 小太阳吧
你好 , 非常感谢你开源的这个下拉刷新的库, 在设置materialRefreshLayout.autoRefresh();自动刷新的时候,会导致app异常退出。
when make small swipe (not full drag) Material refresh layout freezes , progress doesn't rotate and on refresh not called
as in link
https://cloud.githubusercontent.com/assets/1844292/9881023/7d988ae4-5bce-11e5-9720-574ebfa0b4b4.png
java.lang.NullPointerException
at com.cjj.MaterialRefreshLayout.setProgressValue(MaterialRefreshLayout.java:393)
at com.cjj.MaterialRefreshLayout.finishRefreshing(MaterialRefreshLayout.java:484)
at com.cjj.MaterialRefreshLayout$2.run(MaterialRefreshLayout.java:492)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5072)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
at dalvik.system.NativeStart.main(Native Method)
没有判断是否加载中的方法 希望能加上
MaterialRefreshLayout. autoRefresh() there is a bug..... with autoRefresh() ,the CircleProgressBar is not working. the arrow no Animation . Test on LG F240K S6EDGE NOTE4
1.3.0
app:wave_show="false"
这一个设置了没有效果?不管理是false还是true都会出现波浪形状的背景。
有没有方法能判断页面正在Loading中?就是Loading还没有结束
当viewpager使用懒加载的fragment,如果在第一个fragment使用了下拉刷新或者上拉加载。切换到另一个fragment,再次切换回来的时候,下拉刷新或者上拉刷新 刷新状态的箭头就自己出来了。如何解决?
一看这英语就知道是**人写的了,简直无法看
materialRefreshLayout.autoRefresh() 设置自动刷新的时候 圆形箭头会固定不动,没有旋转动画效果。
看到demo只有listview 和recycleview 不支持其他的View吗? 比如ScrollView这个?
我觉得PROGRESS_SIZE 为default还是有点大,希望能增加个值small
加个small,
有些时候需要内部改变位置,去更改外部framelayout的高度,这样会触发你的刷新,很不好
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.cjj.CircleProgressBar.setProgress(int)' on a null object reference
at com.cjj.MaterialHeadView$1.run(MaterialHeadView.java:96)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7229)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
报这个错误Rendering Problems java.lang.NoSuchFieldError com.cjj.MaterialHeadView.setProgressValue(MaterialHeadView.java:93),
请使用isInEditMode这个属性做判断
First of all I must thank you for this wonderful library....I wondered is there any way to show and hide the progress bar manually??
Not by swiping or things like that.
tnx
在xml文档中设置了一套样式,我在代码中另外设置的话发现并没有改变,断点测试也确实执行过该代码了
materialRefreshLayout.setIsOverLay(false);
materialRefreshLayout.setWaveShow(false);
how to disable RefreshLayout ?
something like this :
MaterialRefreshLayout.Enabled = False;
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.