widget.newTableView

This is a continuation of the discussion from the API page.
http://developer.anscamobile.com/reference/index/widgetnewtableview?page=2#comment-97096
[import]uid: 7559 topic_id: 24277 reply_id: 324277[/import]

Is there an example of a multiple selection list using this widget?

Thanks! [import]uid: 66859 topic_id: 24277 reply_id: 101499[/import]

I’d love to see configuration recommendations (speed, fritcion, row widths, etc) for Corona’s TableView widget to match that elusive default apple’s ListView “look and feel” that’ll work nicely on 3GS and 4/4S and ipad/retina (Android’s a bonus)…
anyone?
[import]uid: 124146 topic_id: 24277 reply_id: 105159[/import]

Question about the tableView. I’ve got a onRowTouch method setup to parse events passed to an individual row however I want to get access to the position WHERE on the row the user touched.

On each of my rows I have a checkbox and three simple buttons acting as links to external pages, is it possible to get at the x & y position of the touch so I can check for individual access?

Any help gratefully received.
:sunglasses: [import]uid: 7901 topic_id: 24277 reply_id: 107486[/import]

Is there any way to set lines to dashed lines ?
(maybe by event.line object)

Thank you in advance. [import]uid: 126421 topic_id: 24277 reply_id: 111316[/import]

Hi,
The issue seems to be caused by combining the storyboard API with Table view. If I defined it on the main file, works fine.

The strange thing is that not adding the table to the scene view property solves the problem a bit: I would bounce once and then continue with the malfunction.

Quite strange in my opinion.
Help please!

PD: sorry for some misspelling in the previous post [import]uid: 76413 topic_id: 24277 reply_id: 111648[/import]

Hi,
I am having some problems with TableView widget.
My table is not bouncing back when it reaches it’s limits. Instated, it will keep scrolling even though there is no content any more.

Any idea what might be causin the issue?
I use the last build on today: build 828

I attach my code here:

local listOptions = {  
 left = 124,  
 top = 115,  
 width = 768,   
 height = 492,  
 hideBackground = true,  
 maskFile = "imatges/table-scroll-mask.png",  
 topPadding = -300,  
 bottomPadding = -300,  
 friction = 0.8  
 }  
  
 local list = widget.newTableView( listOptions )  
 group:insert(list)  
  
 -- onRender listener for the tableView  
 local function onRowRender( event )  
 local row = event.target  
 local rowGroup = event.view  
 local index = event.index  
  
 local field=display.newImage( "imatges/raw.png", 0, 0, true )  
 rowGroup:insert( field )  
 end  
  
 for i=1,total do  
 list:insertRow{  
 onRender=onRowRender,  
 width=768,  
 height=32,  
 rowColor={0,0,0,0},  
 lineColor={0,0,0}  
 }  
 end  

Thanks! [import]uid: 76413 topic_id: 24277 reply_id: 111644[/import]

@AngelPou, please file a bug report and include a sample project showing the problem.

Thanks. [import]uid: 7559 topic_id: 24277 reply_id: 111748[/import]

Hi, I just filled the report. I wanted to ask something else.
Is it possible to prevent the table from bouncing as it reaches the limits?

Thanks. [import]uid: 76413 topic_id: 24277 reply_id: 111975[/import]

Hi,

I’m having some problems with this tableview.

Whenever a mask is applied, any image loaded in a row is hidden.

Anyone else having this problem?

Thanks [import]uid: 73855 topic_id: 24277 reply_id: 112222[/import]

How do I add a background image to each row? This was possible with the “old” tableView.newList method (using the default= property) but it doesn’t seem to work with widget.newTableView. Ideas?
[import]uid: 135391 topic_id: 24277 reply_id: 113506[/import]

Hi All !!
We created an APP that uses the TableView very much, and it works! But…
The “press” or “release” events are so slow!! I mean, I have to keep my finger pressed on a row for almost one second to raise the events, and that’s not the standard behaviour (at least on iPad - Apple Store).

Is there a way to set the timings of these events?

Thank you very much.
[import]uid: 86439 topic_id: 24277 reply_id: 116656[/import]

+1 on the Kindle Fire tableviews are almost useless, can’t make a selection without scrolling the tableview and thus never registering the touch event phases for the row. [import]uid: 58885 topic_id: 24277 reply_id: 117904[/import]

@vortika - I just recently was playing with the tableviews and had the same reaction. The event also accepts “tap”. I use that instead of “press” and “release”. [import]uid: 56820 topic_id: 24277 reply_id: 117905[/import]

On the subject of tableviews. Futher testing I have encountered a problem. I am trying to get the tableview to work correctly after rotating the device. Unfortunately the tableview looks corrrect but operates upside-down. The documentation says this in the section concerning tableView:getScrollPosition():

Since tableViews can’t be rotated, it’s recommended you use this function to mark the content position, destroy the tableView, then recreate it in the correct position (orientation?) and use scrollToY() to return it to it’s previous position.

I have tried doing this but I am either missing something or it’s bugged. My app receives the orientation event, it rotates the stage, destroys the tableview and finally recreates it. However it is still functioning upside-down. Scrolling up makes it go down, left is right, etc.

Has anyone tried this and it worked? Any insights on the subject from Corona? Peach? Beuller? [import]uid: 56820 topic_id: 24277 reply_id: 118065[/import]

I have buttons in each tableview cell.
But the tableview does not scroll when started on a button, because the event is handled by the button.
How can I change this?

Also, scrollTo doesn’t work proplerly (doesn’t take in account the topPadding) [import]uid: 5942 topic_id: 24277 reply_id: 119597[/import]

I have buttons in each tableview cell.
But the tableview does not scroll when started on a button, because the event is handled by the button.
How can I change this?

Also, scrollTo doesn’t work proplerly (doesn’t take in account the topPadding) [import]uid: 5942 topic_id: 24277 reply_id: 119597[/import]

That can also happen when you close / removeSelf() the whole scene or tableview.
You should check if the target is a valid displayobject before adding [import]uid: 5942 topic_id: 24277 reply_id: 120360[/import]

Hi there!,
Is it possible to know if a row hasn’t been de-rendered?
I am downloading images from facebook, first I load a default picture then I wait for the network.download listener to fire the new downloaded image.
Problem is that if the row has been de-rendered before the pic has been downloaded the rowGroup:insert(image) will make the following error: attempt to call method ‘insert’ (a nil value)

[code]
local function onRowRender( event ){
local rowGroup = event.view
local image
image = display.newImageRect(“defaultPic.png” ,50,50)
rowGroup:insert(image)

local function imageListener()
if ( event.isError ) then
print ( “Network error - download failed” )
else
image= display.newImageRect(“friend”… data[rowIndex].id …".png" ,system.TemporaryDirectory,50,50)
rowGroup:insert(image)
end
end
network.download( “http://graph.facebook.com/”… data[rowIndex].id …"/picture", “GET”,
imageListener, “friend”…data[rowIndex].id…".png", system.TemporaryDirectory )
} [/code]

any suggestions would be appreciated, as I don’t want to download all the images before generating the table rows. [import]uid: 74667 topic_id: 24277 reply_id: 120359[/import]

Line 11/13 -->
[lua]if rowGroup.numChildren then
image= display.newImageRect(“friend”… data[rowIndex].id …".png" ,system.TemporaryDirectory,50,50)
rowGroup:insert(image)
end[/lua] [import]uid: 5942 topic_id: 24277 reply_id: 120378[/import]