O'Reilly logo

Creating Mobile Apps with Sencha Touch 2 by Bryan P. Johnson, John Earl Clark

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

Chapter 8. Evolver: Using Profiles

With the growing popularity of mobile devices, web designers have had to deal with a wide variety of screen sizes. This is even tougher on web application developers who also need to allow for different functionality between devices. Sencha Touch offers an easy way of dealing with multiple devices, called profiles.

Since the Sencha Touch framework is aware of which device it is running on, we can set up individual profiles for each device we want to support. Sencha Touch will then swap out components and functionality based on the device.

In this chapter we will look at:

  • An overview of profiles
  • Setting up profiles
  • Testing profiles
  • Loading custom CSS by device

We will create an application that reads pages and posts ...

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