O'Reilly logo

Appcelerator Titanium Smartphone App Development Cookbook - Second Edition by Jason Kneen

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 photos using ScrollableView

One of the most common methods of displaying multiple photographs and images in mobile devices is ScrollableView. This view type allows pictures to be swiped to the left and right, and is common among many applications, including Facebook mobile. The method of showing images in this way is reminiscent of flipping through a book or an album, and is very popular due to the natural feel and simple implementation.

In this recipe, we will implement a ScrollableView object. It will contain any number of images, which can be chosen from the camera or photo gallery. The complete source code for this recipe can be found in the /Chapter 4/Recipe 4 folder.

How to do it...

Firstly, let's create our ScrollableView object, ...

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