-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Events page should be infinite paged list #557
Comments
Is it anyone working on this? I might give it a go this weekend! Any other recommendations on how to approach this issue, @tasomaniac? :) |
@lucasxas Hereby, it is assigned to you :-) There are more information about the hub API: You can also think about a different way to deal with past and future events, maybe have two tabs or at least a header/break inbetween. |
👍 we also have in progress label. We are trying to use it when we start working on an issue. Let's split past and future events into 2 lists. Currently it is just a sorting. |
Any reason why we still using ListView/GridView? I think it could be easier to just use RecyclerView + LinearLayout instead of ListView, and RecyclerView + GridLayout instead of GridView. That would also make it easier if we want to implement pagination on Fragments that extend from GDGListFragments. Any thoughts? |
I didn't really get the advantages. But go ahead and use recycler views.
|
The issue is that the AdapterView doesn't have a ScrollListener. But I guess I could still use ListView & GridViews and check if the mList is one of those two types. |
We currently have GDGListFragment and GdgRecyclerView actually. ListFragment uses GridView and lists are just grids with 1 column. You can use anything that is suitable. For paging, you don't need a scroll listener, when the last item in the adapter is created or binded, you can initialize it. |
I got away changing the AdapterView to AbsListView, which ListView and GridView extends, what do you think @tasomaniac ? Also, I'm using this approach https://github.com/codepath/android_guides/wiki/Endless-Scrolling-with-AdapterViews for the 'Infinite' Scrolling. It works pretty well and if you want to implement the same behaviour in any fragment that extend from GDGListFragment you just need to override one method. The work is pretty much done now, I'm just doing on the header/break in between past and future events. :) |
I can implement the basic logic for the GDGRecyclerFragment as well. So if we decide to move the Events page to a RecyclerView it would be easy peasy. |
Do you have already some code pushed somewhere
|
@lucasxas Looking forward to see the PR. |
Did any of you had a chance to try it? :) I was playing with it yesterday and it performs well. Also I don't see a need for adding a header for upcoming and past events, as our Views already show 'PAST' when is necessary. What do you think? |
I think that separation can go into a separate issue. Instead of the I didn't look at your fork. If you are satisfied with it, can you open a On Wed, Jun 15, 2016, 11:51 Lucas Xavier notifications@github.com wrote:
|
Fixed in #647 |
Chapter's Event page currently only shows the future and past events within 3 months. When we scroll to the bottom it should infinitely load the past events of a chapter.
Hub APIs supports paging.
The text was updated successfully, but these errors were encountered: