rockerhieu / rv-adapter-endless

Endless support for RecyclerView.Adapter
MIT License
107 stars 24 forks source link

when time out situation,how to solve the animation view #4

Closed ymmmvp closed 8 years ago

ymmmvp commented 8 years ago

sorry,my english is very poor. i have found a situation that,when it excute loadmore method,but the network is bad or timeout.then the loading animation is still there.my solution is excute recycleview's scrollby().after excuting the method,the animaiton view is out of the screen. do you have a good method to solve this? forgive my poor english...

rockerhieu commented 8 years ago

If the network is timeout, it should throw an exception. You can try catch the exception and invoke a callback to stop the animation.