O'Reilly logo

Creating Mobile Apps with Appcelerator Titanium by Christian Brousseau

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

The photo viewer window

The photo search part of our application is now behind us and we will now move on to our second window that will be used to view the selected photo when the user clicks on a specific row.

The user interface for this window is quite straightforward. We will have a header View sitting at the top of the screen that will contain both Label and Buttons for the photo's title.

The rest of the window will be entirely occupied by an Image View component that will display the photo:

The photo viewer window

On with the code

For the sake of clarity, we will keep all the code related with this window in its own file. We will create a new file named PhotoViewerWindow.js ...

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