Draggable Table View Items

Just thought I should let active widget users know that I’ve implemented a tableView (actually a scrollView) which allows the user to add, remove and drag (re-order) the rows in the scrollable view.

Code Exchange: http://developer.coronalabs.com/code/reorder-table-view-items

View: http://www.screencast.com/users/HoraceBury/folders/Jing/media/e651122a-ab28-456e-85ac-79552d7d5d01 [import]uid: 8271 topic_id: 33044 reply_id: 333044[/import]

Whoah! Interesting, gonna look at this once I jump back into my tableview project! Thanks horacebury! [import]uid: 41884 topic_id: 33044 reply_id: 131287[/import]

Thanks :slight_smile:

Just got separators working - will update the post soon… [import]uid: 8271 topic_id: 33044 reply_id: 131299[/import]

Whoah! Interesting, gonna look at this once I jump back into my tableview project! Thanks horacebury! [import]uid: 41884 topic_id: 33044 reply_id: 131287[/import]

Thanks :slight_smile:

Just got separators working - will update the post soon… [import]uid: 8271 topic_id: 33044 reply_id: 131299[/import]

Ok, proper separators working and posted - I will document later as there are some significant changes to the logic.

My aim is to make the main.lua the only code you need to be aware of and that you should not have to read the library code at all. [import]uid: 8271 topic_id: 33044 reply_id: 131365[/import]

Ok, proper separators working and posted - I will document later as there are some significant changes to the logic.

My aim is to make the main.lua the only code you need to be aware of and that you should not have to read the library code at all. [import]uid: 8271 topic_id: 33044 reply_id: 131365[/import]

Any chance you could repost this library? It doesn’t appear to be in Corona’s Code Exchange any more.

Thanks!

Oh crikey - I’d have to rewrite that code from scratch I’m afraid. I don’t think it’s compatible with the Gfx2.0 library. I’ll take a look around my libraries and see if I can dig it out.

Brilliant - thanks horacebury. I’m going to have to code this anyway, so anything you can share that’ll let me build up from would be super useful.

When the new code exchange was launched the old code exchange was still available though an alternate link. Seems like that link is no longer functional. Does anyone know how to reach the old exchange?

Here is the link to download my solution though please be aware that it is massively broken in the current version of Corona because of the changes to both the widgets and graphics libraries:

https://www.dropbox.com/s/taey5eprfvplrbg/ReorderTable.Widgets2.zip?dl=0

As far as I can tell you would need a daily build from around 2012-11-15 which would be: http://developer.coronalabs.com/release/2012/970/

Unfortunately, that does not work any longer so I’m not sure which daily would be appropriate. I did take a look at the library file and the logic still seems sound, so give it a go and hopefully all you need to do is update it for the latest build.

Fantastic - thank you horacebury! Absolute legend.

I’ll post back here with the end result in a week or so…

Any chance you could repost this library? It doesn’t appear to be in Corona’s Code Exchange any more.

Thanks!

Oh crikey - I’d have to rewrite that code from scratch I’m afraid. I don’t think it’s compatible with the Gfx2.0 library. I’ll take a look around my libraries and see if I can dig it out.

Brilliant - thanks horacebury. I’m going to have to code this anyway, so anything you can share that’ll let me build up from would be super useful.

When the new code exchange was launched the old code exchange was still available though an alternate link. Seems like that link is no longer functional. Does anyone know how to reach the old exchange?

Here is the link to download my solution though please be aware that it is massively broken in the current version of Corona because of the changes to both the widgets and graphics libraries:

https://www.dropbox.com/s/taey5eprfvplrbg/ReorderTable.Widgets2.zip?dl=0

As far as I can tell you would need a daily build from around 2012-11-15 which would be: http://developer.coronalabs.com/release/2012/970/

Unfortunately, that does not work any longer so I’m not sure which daily would be appropriate. I did take a look at the library file and the logic still seems sound, so give it a go and hopefully all you need to do is update it for the latest build.

Fantastic - thank you horacebury! Absolute legend.

I’ll post back here with the end result in a week or so…