Difference between widget.TableView and tableView.newList

I am starting develop game with Corona and i have many things to learn. So please bear with me if my question is silly. What is the difference between TableView widget and tableView.newList

I realize i can add padding from my listview to top of the screen but the tableView is not. [import]uid: 192063 topic_id: 33341 reply_id: 333341[/import]

tableView.newList is an old sample project Corona did to basically use open source (that is, you can edit the function code) to mimic popular iOS UI features. The problem with it was that while it was a good implementation, the code was just not flexible enough and not simple enough for mainstream use - it wasn’t “Corona” enough like you get with cool standard libraries like display.*

(You can edit the code yourself, of course, but I can tell you from experience that the code is advanced enough that non-programmers would have a hard time to modify it appropriately.)

widgets are still improving but the basic idea is to take those UI objects and “Corona-fy” them. Make them easy to use but give them a lot of flexibility. (TableView widget is a great example of this because it gives you direct access to the enormously powerful row renderer).

widgets aren’t perfect - you can’t edit their code and bugs do crop up - but they are a LOT more solid lately and get the job done very quickly. [import]uid: 41884 topic_id: 33341 reply_id: 132441[/import]

Here is the screenshot of tableView.newList. I want a gap between my list and top of screen. In tableView, I only find [java]top[/java] param and try set it to for example 150. When i scroll down the list, i realize the list is push up like the right image. Using tableView widget, i get the right thing i want. The rows are disappeared but not pushed up like tableView. So to my knowledge, these two components are not the same. What component should i use? Thanks [import]uid: 192063 topic_id: 33341 reply_id: 132517[/import]

tableView.newList is an old sample project Corona did to basically use open source (that is, you can edit the function code) to mimic popular iOS UI features. The problem with it was that while it was a good implementation, the code was just not flexible enough and not simple enough for mainstream use - it wasn’t “Corona” enough like you get with cool standard libraries like display.*

(You can edit the code yourself, of course, but I can tell you from experience that the code is advanced enough that non-programmers would have a hard time to modify it appropriately.)

widgets are still improving but the basic idea is to take those UI objects and “Corona-fy” them. Make them easy to use but give them a lot of flexibility. (TableView widget is a great example of this because it gives you direct access to the enormously powerful row renderer).

widgets aren’t perfect - you can’t edit their code and bugs do crop up - but they are a LOT more solid lately and get the job done very quickly. [import]uid: 41884 topic_id: 33341 reply_id: 132441[/import]

Use the widget, for sure. Much more flexible for what you need. [import]uid: 41884 topic_id: 33341 reply_id: 132604[/import]

Here is the screenshot of tableView.newList. I want a gap between my list and top of screen. In tableView, I only find [java]top[/java] param and try set it to for example 150. When i scroll down the list, i realize the list is push up like the right image. Using tableView widget, i get the right thing i want. The rows are disappeared but not pushed up like tableView. So to my knowledge, these two components are not the same. What component should i use? Thanks [import]uid: 192063 topic_id: 33341 reply_id: 132517[/import]

Use the widget, for sure. Much more flexible for what you need. [import]uid: 41884 topic_id: 33341 reply_id: 132604[/import]