I have saved a bunch of values inside a lua table - which are files loaded from the server, and I would like to put each value into some kind of a menu, where the user can select one of the values in the table to download a particular file from the server. How would I be able to implement this?? Would widget.newtableview() or Spinner work in this case? Or are spinners in Corona/Solar2d different than android studio. Any help would be appreciated! Thank you!
There are lots of ways of interactions with the user. You can create lots of buttons which trigger download process of each file, it can be a scrollview with text-lines which work as buttons… You can create them using a cycle which uses your table. All the buttons would call just one function which would read a unique .id of a button and then download a file according to the id.
I personally avoid using a Spinner because it does not return a value until touched, even though the value is visually selected.