MarkoMilos / Paginate

Library for creating simple pagination functionality upon RecyclerView and AbsListView
Apache License 2.0
1.35k stars 225 forks source link

Loading list item show/hide #9

Closed linkact closed 4 years ago

linkact commented 8 years ago

Thank you for the library.

Is there any available method to forcely close(invisible) the loading list item when cannot get data from server... (for example.. when the server down)

MarkoMilos commented 8 years ago

@linkact have you tried with setHasMoreDataToLoad(boolean) call in a case where there is no connection. Right now there is no other explicit way to do this.

planetwebsolution commented 7 years ago

I do this after request finished with no record for hide loading view mPaginate.setHasMoreDataToLoad(true); but its not working, I don't know why ?

blank-space commented 6 years ago

@planetwebsolution you should use setHasMoreDataToLoad(false);

MarkoMilos commented 4 years ago

As blank-space suggested you should use setHasMoreDataToLoad(false);

Closing this, please reopen if you still have an issue with this.