In Chapters 2 and 3, we saw how to make use of different form fields, containers, and layouts to create a view of our choice. The out-of-the-box layouts provided by Sencha Touch have a pre-defined way to position the components and calculate their sizes. Often, there may be situations in the application where the view cannot be created, directly using the available containers, components, and layouts. For example, if we wanted to create a photo album where the view shows the photos in a matrix based on the dimension of the device. Alternatively, suppose we wanted to design a view similar to the Facebook feed view. There is no direct layout supporting these needs. If we try to achieve it by mixing different layouts, it would become a heavy view, which would use multiple containers. We would have to work with the styles to do some tweaking on top of what the layouts provide us to align the information properly. Alternatively, Sencha Touch provides us a way to create templates...
Sencha Touch Cookbook
By :
Sencha Touch Cookbook
By:
Overview of this book
Sencha touch is a versatile HTML5-based framework for developing mobile web apps that look and feel native on touch screen devices, and with it you can write your code once and deploy it to both iOS and Android saving you both time and money. The Sencha touch cookbook has a comprehensive selection of recipes covering everything from installation right through to HTML5 geo location. The Sencha Touch Cookbook really is your one stop resource for cross platform HTML5 application development. It covers the basics such as setting up an iOS and Android development environment right through to much more complex development issues such as touch gestures, animation, rich media and geo location. Every recipe is practically focused. Maximum action. Minimum theory.
Table of Contents (17 chapters)
Sencha Touch Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Gear up for the Journey
Catering to your Form Related Needs
Containers and Layouts
Building Custom Views
Dealing with Data and Data Sources
Adding the Components
Adding Audio/Visual Appeal
Taking your Application Offline
Engaging Users by Responding to Events
Increased Relevance Using Geolocation
Index
Customer Reviews