O'Reilly logo

Corona SDK HOTSHOT by Nevin Flanagan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying results

Once we obtain the translation results, we need to display them. The design says that we can have a separate view for this, which slides in to display the entry view. A scene seems like a good fit for each of these views; we'll create one that stores the various text elements of the translation in the rows of a table view.

Getting ready

Copy the scenetemplate.lua file in the project directory to a new file named result.lua and open it.

Getting on with it

The design says that this display will contain a list of the text and its translation, and a bar with a button to return to the previous view. We want the button bar to appear above the table, but simply creating a table view and placing a rectangle above it runs into a snag; while ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required