Sencha Touch Cookbook

Over 100 recipes for creating HTML5-based cross-platform apps for touch devices with this book and ebook

Sencha Touch Cookbook

Cookbook
Ajit Kumar

Over 100 recipes for creating HTML5-based cross-platform apps for touch devices with this book and ebook
$26.99
$44.99
RRP $26.99
RRP $44.99
eBook
Print + eBook
$12.99 p/month

Want this title & more? Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.
+ Collection
Free Sample

Book Details

ISBN 139781849515443
Paperback350 pages

About This Book

  • Master cross platform application development
  • Incorporate geo location into your apps
  • Develop native looking web apps

Who This Book Is For

This book is ideal for anyone who wants to gain the practical knowledge involved in using Sencha Touch mobile web application framework to make attractive web apps for mobiles. If you have some familiarity with HTML and CSS, then this book is for you. This book will give designers the skills they need to implement their ideas, and provide developers with creative inspiration through practical examples. It is assumed that you know how to use touch screens, touch events, WebKit on mobile systems, Apple iOS, and Google Android for Mobiles.

Table of Contents

Chapter 1: Gear up for the Journey
Introduction
Setting up the Android-based development environment
Setting up the iOS-based development environment
Setting up the Blackberry-based development environment
Setting up the browser-based development environment
Setting up the production environment
Detecting the device
Finding information about features that are supported in the current environment
Initializing your application
Tweaking your application to configure itself using profiles
Responding to the orientation change
Chapter 2: Catering to your Form Related Needs
Introduction
Getting your form ready with FormPanel
Working with search
Putting custom validation in the e-mail field
Working with dates using DatePicker
Making a field hidden
Working with the select field
Changing the value using Slider
Spinning the number wheel using Spinner
Toggling between your two choices
Checkbox and Checkbox group
Text and TextArea
Grouping fields with FieldSet
Validating your form
Chapter 3: Containers and Layouts
Introduction
Keeping the container lightweight
Working with Panel
Adding items to a container at runtime
Building wizards using CardLayout
Panel docking using DockLayout
Fitting into the container using FitLayout
Arranging your items horizontally using HBoxLayout
Arranging your items vertically using VBoxLayout
Mixing layouts
Chapter 4: Building Custom Views
Introduction
Basic HTML templating using Template
Using XTemplate for advanced templating
Conditional view rendering using XTemplate
Designing a custom view using DataView
Showing the filtered data
Responding to the user action
Chapter 5: Dealing with Data and Data Sources
Introduction
Creating models
Loading the form using a data model
Working with Store
Converting incoming JSON data into models using JsonReader
Converting incoming XML data into models using XmlReader
Validations in models
Defining the custom validation
Relating models using association
Persisting session-specific data using SessionStorageProxy
Persisting data using LocalStorageProxy
Accessing in-memory data using MemoryProxy
Loading data through AJAX using AjaxProxy
Sorting of the data
Data grouping
Filtering data
Using a cross-domain URL in your application
Chapter 6: Adding the Components
Introduction
Working with Button
Creating a sheet of buttons with ActionSheet
Carousel
Managing a list of data using List
Grouping items in a List
Navigating through a list of data using indexBar
Working with a list of nested data using NestedList
Picking your choice using Picker
Switching between multiple views using SegmentedButton
Working with Tab panels
Quicker access to application features using Toolbar
Creating a new component
Extending an existing component capability
Overriding a component behavior
Adding behavior to an existing component using plugins
Chapter 7: Adding Audio/Visual Appeal
Introduction
Animate me!
Ding-dong! You have a message!
Working with videos
Adding the chart support to your app
Working with an area chart
Generating a bar chart
Creating a column chart
Showing a group of bars and columns
Switching between stacked and grouped orientation
Highlighting and displaying an item detail
Creating a gauge chart
Creating a line chart
Creating a pie chart
Rotating the pies
Grouping the pies
Highlighting a pie
Using a radar chart
Using a scatter chart
Chapter 8: Taking your Application Offline
Introduction
Detecting offline mode
Storing your data offline
Storing your images offline
Application caching
Chapter 9: Engaging Users by Responding to Events
Introduction
Handling Touch Events
Handling Scroll Events
Handling Tap Events
Handling Double Tap Events
Handling TapHold Events
Handling Swipe Events
Handling Pinch Events
Handling Drag Events
Chapter 10: Increased Relevance Using Geolocation
Introduction
Finding out your location
Auto-update of your location
Tracking direction and speed
Hooking up Google Maps with your application
Working with Google Maps options
Mapping Geolocation on Google Maps

What You Will Learn

  • Set up your production environment
  • Add life to your application using animations and media
  • Make your application available offline.
  • Engage users by responding to the events
  • Map GeoLocation on Google Maps

In Detail

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.

Authors

Table of Contents

Chapter 1: Gear up for the Journey
Introduction
Setting up the Android-based development environment
Setting up the iOS-based development environment
Setting up the Blackberry-based development environment
Setting up the browser-based development environment
Setting up the production environment
Detecting the device
Finding information about features that are supported in the current environment
Initializing your application
Tweaking your application to configure itself using profiles
Responding to the orientation change
Chapter 2: Catering to your Form Related Needs
Introduction
Getting your form ready with FormPanel
Working with search
Putting custom validation in the e-mail field
Working with dates using DatePicker
Making a field hidden
Working with the select field
Changing the value using Slider
Spinning the number wheel using Spinner
Toggling between your two choices
Checkbox and Checkbox group
Text and TextArea
Grouping fields with FieldSet
Validating your form
Chapter 3: Containers and Layouts
Introduction
Keeping the container lightweight
Working with Panel
Adding items to a container at runtime
Building wizards using CardLayout
Panel docking using DockLayout
Fitting into the container using FitLayout
Arranging your items horizontally using HBoxLayout
Arranging your items vertically using VBoxLayout
Mixing layouts
Chapter 4: Building Custom Views
Introduction
Basic HTML templating using Template
Using XTemplate for advanced templating
Conditional view rendering using XTemplate
Designing a custom view using DataView
Showing the filtered data
Responding to the user action
Chapter 5: Dealing with Data and Data Sources
Introduction
Creating models
Loading the form using a data model
Working with Store
Converting incoming JSON data into models using JsonReader
Converting incoming XML data into models using XmlReader
Validations in models
Defining the custom validation
Relating models using association
Persisting session-specific data using SessionStorageProxy
Persisting data using LocalStorageProxy
Accessing in-memory data using MemoryProxy
Loading data through AJAX using AjaxProxy
Sorting of the data
Data grouping
Filtering data
Using a cross-domain URL in your application
Chapter 6: Adding the Components
Introduction
Working with Button
Creating a sheet of buttons with ActionSheet
Carousel
Managing a list of data using List
Grouping items in a List
Navigating through a list of data using indexBar
Working with a list of nested data using NestedList
Picking your choice using Picker
Switching between multiple views using SegmentedButton
Working with Tab panels
Quicker access to application features using Toolbar
Creating a new component
Extending an existing component capability
Overriding a component behavior
Adding behavior to an existing component using plugins
Chapter 7: Adding Audio/Visual Appeal
Introduction
Animate me!
Ding-dong! You have a message!
Working with videos
Adding the chart support to your app
Working with an area chart
Generating a bar chart
Creating a column chart
Showing a group of bars and columns
Switching between stacked and grouped orientation
Highlighting and displaying an item detail
Creating a gauge chart
Creating a line chart
Creating a pie chart
Rotating the pies
Grouping the pies
Highlighting a pie
Using a radar chart
Using a scatter chart
Chapter 8: Taking your Application Offline
Introduction
Detecting offline mode
Storing your data offline
Storing your images offline
Application caching
Chapter 9: Engaging Users by Responding to Events
Introduction
Handling Touch Events
Handling Scroll Events
Handling Tap Events
Handling Double Tap Events
Handling TapHold Events
Handling Swipe Events
Handling Pinch Events
Handling Drag Events
Chapter 10: Increased Relevance Using Geolocation
Introduction
Finding out your location
Auto-update of your location
Tracking direction and speed
Hooking up Google Maps with your application
Working with Google Maps options
Mapping Geolocation on Google Maps

Book Details

ISBN 139781849515443
Paperback350 pages
Read More

Recommended for You