Code Monkey home page Code Monkey logo

recyclerrefreshlayout's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

recyclerrefreshlayout's Issues

Fragment SimpleItemRecyclerFragment{6fb84bc} not attached to Activity

Process: app.dinus.com.recyclerrefreshlayout, PID: 31521
java.lang.IllegalStateException: Fragment SimpleItemRecyclerFragment{6fb84bc} not attached to Activity
at android.support.v4.app.Fragment.getResources(Fragment.java:636)
at android.support.v4.app.Fragment.getString(Fragment.java:658)
at app.dinus.com.example.simplerefresh.SimpleItemRecyclerFragment.responseItemList(SimpleItemRecyclerFragment.java:96)
at app.dinus.com.example.simplerefresh.SimpleItemRecyclerFragment.access$100(SimpleItemRecyclerFragment.java:19)
at app.dinus.com.example.simplerefresh.SimpleItemRecyclerFragment$2$2.run(SimpleItemRecyclerFragment.java:79)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5438)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)

加载完一页以后,主动调用refresh会造成RefreshView显示为全白色

如上图所示,如果加载一页以后,手动调用refresh,会造成RefreshView显示为全白色,现在定位到原因是
这种情况下,MaterialRefreshView的mSwipeDegrees一直为0,暂时还不知道怎么解决,正在查找

private void drawArc(Canvas canvas) {
        canvas.drawArc(mArcBounds, mStartDegrees, mSwipeDegrees, false, mPaint);
    }

Please help

Hi, your apk cleapup was preinstalled on my mx9 pro TV box. I have now upgraded to mecool km9 pro. Android certified box and wanted to use your apk on that box since it doesn't have any app to kill all running apps. I was able to extract the apk com.charon.rocketfly.apk but it doesn't get installed. Can you help please. The box has official android PIE version.

removeFooterView和addFooterView方法不能改变footer样式

调用DefaultTipsHelper中的getHeaderAdapter().removeFooterView方法时出现问题。
DefaultTipsHelper中的showHasMore方法用来显示加载中的样式,我想新增一种样式用来显示“没有更多数据了”比如叫showNoMore,参考DefaultTipsHelper中的实现,showNoMore中的具体实现是:

  • mFragment.getHeaderAdapter().removeFooterView(mLoadingView);
  • mFragment.getHeaderAdapter().addFooterView(mNoMoreView);
    但是页面仍然显示的是mLoadingView,为什么mNoMoreView显示不出来呢?

另外,调用removeAllFooterView也无效。

错误日志是

cn.com.something.ui.adapter.RecyclerListAdapter$ViewHolderFactory.onCreateViewHolder(android.view.ViewGroup)' on a null object reference
W/System.err( 2855): 	at cn.com.something.ui.adapter.RecyclerListAdapter.onCreateViewHolder(RecyclerListAdapter.java:30)
W/System.err( 2855): 	at cn.com.something.ui.adapter.RecyclerListAdapter.onCreateViewHolder(RecyclerListAdapter.java:10)
W/System.err( 2855): 	at cn.com.something.ui.adapter.HeaderViewRecyclerAdapter.onCreateViewHolder(HeaderViewRecyclerAdapter.java:63)
W/System.err( 2855): 	at android.support.v7.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:6073)
W/System.err( 2855): 	at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5243)
W/System.err( 2855): 	at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5153)
W/System.err( 2855): 	at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2061)
W/System.err( 2855): 	at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1445)
W/System.err( 2855): 	at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1408)
W/System.err( 2855): 	at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:580)
W/System.err( 2855): 	at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3374)
W/System.err( 2855): 	at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3183)
W/System.err( 2855): 	at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3627)

loading view flickering

If loading is triggered by swipe gesture its working fine BUT when i am triggering it just by adding refreshLayout.setRefreshing(true); it start flickering

The design of tips is too complex to understand

the show and hide of the tipview is so complicated, every action of tip take serversal inovke.I think it should be simplified. Maybe remove the tipview will reduce the use the of system's resource when it should be hidden,but the the cost of let it visible or invisible is as same as add view or remove view
frequently,I think.

加载成功网络数据后刷新UI的处理不友好

感谢大神贡献如此强大易用的库。之所以说刷新UI处理的不友好,是因为当网络请求回调不是在ItemInteractionListener类中的时候无法正确地刷新UI。

demo中当网络请求成功返回时,是通过ItemInteractionListener.super.requestRefresh();来刷新UI的,但是如果当网络请求不是在ItemInteractionListener这个类中实现的时候刷新的操作就无法正常执行。
即便声明了一个全局变量,

private ItemInteractionListener itemInteractionListener = new ItemInteractionListener();

也不行。

相信很多人都不是把网络请求写在ItemInteractionListener这个类中的,@dinuscxj 能否给些修改的提示呢?

为什么在我写的demo里。会出现这种情况

设置自动刷新setRefreshing(true),不回调onRefresh方法,还有就是RefreshView不设置pinned紧贴底部,设置pinned紧贴顶部,然而在你给出的demo里,没有我说的这种情况,我也仔细看了你给出的demo。发现也没有什么不同之处,唯一不同就是adapter我用了这个库https://github.com/CymChad/BaseRecyclerViewAdapterHelper,
麻烦在百忙之中,看看能否帮我只个招。提前谢谢了。

NPE in RecyclerRefreshLayout$1.applyTransformation

java.lang.NullPointerException
at com.dinuscxj.refresh.RecyclerRefreshLayout$1.applyTransformation(RecyclerRefreshLayout.java:122)
at android.view.animation.Animation.initializeInvalidateRegion(Animation.java:1047)
at android.view.View.drawAnimation(View.java:14210)
at android.view.View.draw(View.java:14359)

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.