TableView Pull down to Update

I could swear that I’ve seen a tutorials on how to make a listview/table view where you can pull down the list to update the content, like most twitter clients.

Can someone point me in the right direction. [import]uid: 6942 topic_id: 6558 reply_id: 306558[/import]

@HeshamAmiri

Did you ever find out more information about this functionality? I’m trying to do the same thing and would rather leverage pre-existing code.

Thanks! [import]uid: 44153 topic_id: 6558 reply_id: 106242[/import]

Looking for the same here. Do you have some code you can share?

Thanks [import]uid: 189638 topic_id: 6558 reply_id: 134434[/import]

This is a challenging problem. It wasn’t even possible until a bug was fixed in a daily build about two months ago that allowed the events to work with a tableView.

The tableView events let you know if the scroll has started, when it ends and when you’ve returned back to normal.

To make it work, I had to use an enterFrame listener that monitors the Y position of the table view and if I see the start scroll event, I show the graphic I use and in the enterFrame move the graphic with the scroll. When they let go, the enterFrame will slide it back up. You need to show a 2nd graphic when the person has pulled down far enough to trigger the refresh.
[import]uid: 199310 topic_id: 6558 reply_id: 134443[/import]

Too advanced for me. I’m building my first Corona App and there is challenges to beat around every corner. It’s not being easy… or maybe I have started with a too dificult project. I know that CoronaSDK is in active development but this kind of feature is a standard one and a must have when using tableviews.

Also the same goes to paginating results. How do you do to get more results into the tableview? I mean, when you scrool up and reaching the last results of the tableview, automatically fetch some more results.

Would you be kind enough to post a simple example just to get me started of what you described on your last answer.

Thank you so much! [import]uid: 189638 topic_id: 6558 reply_id: 134477[/import]

It’s not a simple example to do a spring reload in a forum post. This is a good idea for a tutorial and I’m discussing the possibility of writing this up at some point.

Corona widgets are not Apple or Android native widgets, so much of the functionality that Apple has spent years to add to their listViews we don’t get for free with Corona widgets. The team has to program these features in and it doesn’t happen over night. Our widgets do get periodic updates which improves them and gives new functionality.

Let me see where we are at schedule wise and maybe we can have a tutorial on this some time.
[import]uid: 199310 topic_id: 6558 reply_id: 134552[/import]

Thank you Rob, I would appreciate that. [import]uid: 189638 topic_id: 6558 reply_id: 134621[/import]

Looking for the same here. Do you have some code you can share?

Thanks [import]uid: 189638 topic_id: 6558 reply_id: 134434[/import]

This is a challenging problem. It wasn’t even possible until a bug was fixed in a daily build about two months ago that allowed the events to work with a tableView.

The tableView events let you know if the scroll has started, when it ends and when you’ve returned back to normal.

To make it work, I had to use an enterFrame listener that monitors the Y position of the table view and if I see the start scroll event, I show the graphic I use and in the enterFrame move the graphic with the scroll. When they let go, the enterFrame will slide it back up. You need to show a 2nd graphic when the person has pulled down far enough to trigger the refresh.
[import]uid: 199310 topic_id: 6558 reply_id: 134443[/import]

Too advanced for me. I’m building my first Corona App and there is challenges to beat around every corner. It’s not being easy… or maybe I have started with a too dificult project. I know that CoronaSDK is in active development but this kind of feature is a standard one and a must have when using tableviews.

Also the same goes to paginating results. How do you do to get more results into the tableview? I mean, when you scrool up and reaching the last results of the tableview, automatically fetch some more results.

Would you be kind enough to post a simple example just to get me started of what you described on your last answer.

Thank you so much! [import]uid: 189638 topic_id: 6558 reply_id: 134477[/import]

It’s not a simple example to do a spring reload in a forum post. This is a good idea for a tutorial and I’m discussing the possibility of writing this up at some point.

Corona widgets are not Apple or Android native widgets, so much of the functionality that Apple has spent years to add to their listViews we don’t get for free with Corona widgets. The team has to program these features in and it doesn’t happen over night. Our widgets do get periodic updates which improves them and gives new functionality.

Let me see where we are at schedule wise and maybe we can have a tutorial on this some time.
[import]uid: 199310 topic_id: 6558 reply_id: 134552[/import]

Thank you Rob, I would appreciate that. [import]uid: 189638 topic_id: 6558 reply_id: 134621[/import]