Build 928 Rocks my World..... But I'm greedy and I want more....

One of the fixes in 928 was the ability for newTableView’s to actually generate events when the table liView has been pulled down and let go… The spring reload effect.

I have it somewhat working in a app at the moment. Yea team!

However I have no idea how far I’ve moved the list or how fast to try and pace an animated spring release to reload graphic with it. I thought about a runtime listener and getting the y location of the list, but I have a feeling that might be painful.

Anyone want to put in some suggestions?

[import]uid: 19626 topic_id: 31662 reply_id: 331662[/import]

Hey Rob.

Glad you like the fixes :slight_smile:

What exactly would you like exposed? A function to give you the coords/velocity?
Let me know
[import]uid: 84637 topic_id: 31662 reply_id: 126509[/import]

I’m not sure but on many iOS apps when you pull down a blue-gray bar with an arrow that flips and some text saying release to reload.

I don’t know if it should be done with negative rows or a hidden row header or if I need more info and I can roll my own.

There is also a bug I you don’t specify a top padding with the setPosition functions. I’ll file a bug report when I get time.

Also is there any updates on the table view doc updates? [import]uid: 19626 topic_id: 31662 reply_id: 126514[/import]

We will add that as a feature im sure. A lot of re-factoring work is being done (more on that later) so i’m not sure when exactly.

The docs were recently updated. Is there still missing information?
Thanks Rob [import]uid: 84637 topic_id: 31662 reply_id: 126515[/import]

I’m not on my laptop but none of the methods like scrollToIndex and getListPosition are documented. Many if not all of the events are just place holder pages
[import]uid: 19626 topic_id: 31662 reply_id: 126541[/import]

Hey Rob.

You can’t have seen the pages since they were updated.

http://docs.coronalabs.com/api/type/TableViewWidget/index.html

Lists all the methods and properties :slight_smile:

[import]uid: 84637 topic_id: 31662 reply_id: 126542[/import]

I recently tackled this situation by rolling my own.

More or less I just have the first row set as a text object. I set the tableview with toppadding to a negative number to offset the first rows height, thus causing row #2 to be positioned to look like it is row #1. Then in my runtime loop I get the position of the tableview and if its over a certain number I call my update online games function. You also put in checks to make sure you don’t keep calling the function every loop.

I update the text according to what is happening. It is simplistic at this point, but I can make it more fancy down the road. This also requires a mask large enough to obscure row #1’s content.

My only issue is the mask/rowcolor bug that causes images to be transparent if you make the rowcolor transparent. I was told it’s a known bug but it has been around since build .861. Hope it gets some attention soon!

I would post code snippets but I am at work. :frowning: [import]uid: 56820 topic_id: 31662 reply_id: 126550[/import]

That’s good Danny… I’ve been looking for this for a long time… But if you use the side navigation under widget.* that information isn’t there…

http://docs.coronalabs.com/api/library/widget/newTableView.html [import]uid: 19626 topic_id: 31662 reply_id: 126551[/import]

Yeah thats just how the api docs are structured.

In all of the api docs, you view the properties and methods of that type by clicking the link at the top where it says “return value”

This is generally reflected in the see also section as well.

[import]uid: 84637 topic_id: 31662 reply_id: 126553[/import]

Hey Rob.

Glad you like the fixes :slight_smile:

What exactly would you like exposed? A function to give you the coords/velocity?
Let me know
[import]uid: 84637 topic_id: 31662 reply_id: 126509[/import]

I’m not sure but on many iOS apps when you pull down a blue-gray bar with an arrow that flips and some text saying release to reload.

I don’t know if it should be done with negative rows or a hidden row header or if I need more info and I can roll my own.

There is also a bug I you don’t specify a top padding with the setPosition functions. I’ll file a bug report when I get time.

Also is there any updates on the table view doc updates? [import]uid: 19626 topic_id: 31662 reply_id: 126514[/import]

We will add that as a feature im sure. A lot of re-factoring work is being done (more on that later) so i’m not sure when exactly.

The docs were recently updated. Is there still missing information?
Thanks Rob [import]uid: 84637 topic_id: 31662 reply_id: 126515[/import]

I’m not on my laptop but none of the methods like scrollToIndex and getListPosition are documented. Many if not all of the events are just place holder pages
[import]uid: 19626 topic_id: 31662 reply_id: 126541[/import]

Hey Rob.

You can’t have seen the pages since they were updated.

http://docs.coronalabs.com/api/type/TableViewWidget/index.html

Lists all the methods and properties :slight_smile:

[import]uid: 84637 topic_id: 31662 reply_id: 126542[/import]

I recently tackled this situation by rolling my own.

More or less I just have the first row set as a text object. I set the tableview with toppadding to a negative number to offset the first rows height, thus causing row #2 to be positioned to look like it is row #1. Then in my runtime loop I get the position of the tableview and if its over a certain number I call my update online games function. You also put in checks to make sure you don’t keep calling the function every loop.

I update the text according to what is happening. It is simplistic at this point, but I can make it more fancy down the road. This also requires a mask large enough to obscure row #1’s content.

My only issue is the mask/rowcolor bug that causes images to be transparent if you make the rowcolor transparent. I was told it’s a known bug but it has been around since build .861. Hope it gets some attention soon!

I would post code snippets but I am at work. :frowning: [import]uid: 56820 topic_id: 31662 reply_id: 126550[/import]

That’s good Danny… I’ve been looking for this for a long time… But if you use the side navigation under widget.* that information isn’t there…

http://docs.coronalabs.com/api/library/widget/newTableView.html [import]uid: 19626 topic_id: 31662 reply_id: 126551[/import]

Yeah thats just how the api docs are structured.

In all of the api docs, you view the properties and methods of that type by clicking the link at the top where it says “return value”

This is generally reflected in the see also section as well.

[import]uid: 84637 topic_id: 31662 reply_id: 126553[/import]