Corona sdk where is table view




















Also the renderCallback for handling putting buttons in the row - see rowRenderButtons. Appends rows to an existing table view. See below for an example. See pagination project and look at file table-paginator. Overview newTableView creates a scrollable table view.

Syntax mui. Display group in which to insert the table. The name of the widget. The width and height of the widget. The top and left coordinates of widget. The font for the text. The font size. The RGB A text color. The RGB A color of line separator. The height of the line separator. The RGB A background color of the row. The RGB A color of the row background for all rows by default.

The height of each row. When the refresh is over the content goes back to the initial height.. You could put the refresh request inside a timer so that the main function returns immediately and then when the timer function finishes, it will update. Hi Rob, I was looking into what Abdulaziz is asking. So where do you actually put the request timer so that when you are reloading and getting the response from the server that the app will show the animation or the content stayed down.

I used row-1 to hold the refresh animation. Many people wanted to have tableViews that would fit many different devices without having to have dozens of mask files and trying to figure out which mask file to use.

To do this, we have to use containers and they self-mask. You could always download the open source versions from our github. It works in the simulator and if you have the device status bar turned off. Is there any way to get the x,y positions of the event within onTableRowTouch? Otherwise, you have to be super precise with your touch for the event. Is there a simpler way of cancelling the request made by loadRemoteImage method? In particular, I am trying to stop the listener from displaying the downloaded images when the scene:hide is called.

This way these handles can be saved in a table and cancelled whenever needed. If you need to be able to cancel the download, you should use network. I just copy the sample, but I put my data. Any ideas? I am using the tableView which results into another tableView. It works fine on the simulator howver, it messes up on the device. Has anyone had same problem? Please ask this in the forums. We need to see code and code does not work well in blog comments. You will need to post your onRowRender function, the code where you create the tableView and your code where you insert your rows into the table to start.

If you plan on using tableview on devices with much higher resolution than your config. I am playing around with the tableView widget and have come across a hurdle. I start in portrait mode with a width of Table renders, no problem.

I then rotate the device, but the table width remains How do I re-render the tableView so that it now spans the landscape width? Tutorial: Advanced TableView tactics. Tags: TableView , tutorial , widget.

Rob Miracle rob coronalabs. Carlos Posted at h, 04 March Thank you Rob for another useful and great tutorial! List often use remote images. In this case, onRowRender must be called once image is loaded. Rob Miracle Posted at h, 06 March The way I do it it ties the download to the row itself and not to the order they are inserted.

If you tell it to delete the third row again, nothing happens. It can hide the third row, but that row is still somewhere there. Okay, I can delete some rows, fine.

But I also need to give the user a possibility of reordering the rows - like, dragging the fifth row and dropping it into the second place. Grabbing and dropping rows into another slot is not supported in the base tableView, but it may be possible to create this kind of interactivity. The main issue will be how in-depth you want to go. If not, how do you signal to the user where the row will be dropped? No doubt this kind of functionality would be tricky, but with the proper efforts, I believe it could be done.

I thought it could be possible, when you are drawing the table view in OpenGL unlike, say, Titanium, where they are using a native component. But maybe the framework enforces some limitations with its lifecycle etc? Like, a component has to stay immutable once it was created?



0コメント

  • 1000 / 1000