ArticleslgStudy

science

Sencha Touch

Sencha Touch is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Sencha Touch rather than just read about it. In short: Sencha Touch is a user interface (UI) JavaScript library, or web framework, specifically built for the Mobile Web. It can be used by Web developers to develop user interfaces for mobile web applications that look and feel like native applications on supported mobile devices.

Sencha Touch — main illustration
Sencha Touch — illustration

Key takeaways

  • Sencha Touch belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Sencha Touch to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Sencha Touch from memory before moving on to harder problems.

Reference excerpt

Sencha Touch is a user interface (UI) JavaScript library, or web framework, specifically built for the Mobile Web. It can be used by Web developers to develop user interfaces for mobile web applications that look and feel like native applications on supported mobile devices. It is based on web standards such as HTML5, CSS3 and JavaScript. The goal of Sencha Touch is to facilitate quick and easy development of HTML5 based mobile apps which run on Android, iOS, Windows, Tizen and BlackBerry devices, simultaneously allowing a native look and feel to the apps.

Version history and support Sencha Touch is a product of Sencha, which was formed after popular JavaScript library projects Ext JS, jQTouch and Raphaël were combined. The first release of Sencha Touch, version 0.90 beta, was made available on July 17, 2010. This beta release supported devices running Android, and iOS (on iPhone, iPod Touch, iPad). Subsequently, the first stable version, 1.0, was released in November 2010. Version 1.1.0 added support for devices running BlackBerry OS 6.0. The latest release, Sencha Touch 2.4.2, was released in June 2015 and is designed to run on the following browsers and platforms:

Android browser, Google Chrome for Android BlackBerry 10 Bada Mobile Browser Kindle Fire Browser Tizen Windows Phone 8 and Windows 8 IE10 Mobile Safari There are no announced plans to support Firefox Mobile.

Features

MVC Architecture Sencha Touch follows the MVC pattern which separates the application data, the control code and view. This separation allows large scale applications to be flexible and easy to maintain.

Widget components and customisable themes Sencha Touch has an inbuilt DOM manipulation interface which negates the dependency on other UI frameworks like jQuery. It includes a set of graphical user interface GUI-based controls (or components) for use within mobile web applications. These components are optimized for touch input. The components are:

Buttons with device specific themes and effects Form elements such as text fields for email Date picker and address Sliders, selectors, and combo-boxes A list component with momentum-scrolling and an index bar A minimal icon set Toolbars and menus Movable tabs, bottom toolbars A map component with support for multi-touch gestures such as pinch and zoom Carousels All the components can be themed according to the target device. This is done using Sass, a stylesheet language built over CSS. Some of the native-lookalike themes are Cupertino Classic (for iOS6.x and below), Cupertino (for iOS 7) and Mountain View (for Android).

Transitions, animations and adaptive UI Sencha Touch has eight in-built transition effects including slide over or under the current element, pop, flip, and cube. It supports common touch gestures built from touch events, which are Web standards but supported only by Android, iOS, and some touch enabled devices. These are tap, double tap, swipe, scroll, and pinch. Since Sencha touch is HTML5 based, the layouts it offers are extremely adaptive in nature.

Charting Sencha Touch also supports charting components including pie charts, bar graphs, line series, etc. with explanatory legends. These components support interactivity like pinch and zoom. Just like the Grid components in ExtJS, Sencha Touch offers TouchGrid functionality.

Profiles Profiling in Sencha Touch allows you to create different profiles catering to different screen sizes. When the application is loaded, the framework determines the type of device, and its corresponding profile determines which components and functionality need to be swapped out, and the specific views and controllers that need to be invoked, saving the developer the task of creating a different application for each type of device.

Basic application directory structure Sencha Touch applications have a basic file and directory structure as follows:

Developer tools and plugins Sencha Touch provides IDE plugins for ease of development. Benefits of these plugins include code generation and auto-completion, code refactoring and ease of navigation to framework codebase and custom classes. Sencha Touch has plugins for popular IDEs like JetBrains, Visual Studio and Eclipse. There is a visual app builder, Sencha Architect, for building cross platform HTML5 apps. It provides addiction features like theming and command line integration.

Sample usage Sencha Touch makes it convenient to use a map in your application using the Ext.Map component. The inclusion of "Google Maps API" JavaScript file is essential for the GoogleMaps API to work.Ext.setup() is the starting point to initialise the application, setting up the viewport and the event system.

Comparison to native applications Sencha Touch supports PhoneGap and Apache Cordova APIs for Accelerometer, Camera, Compass, Geolocation, Capture, InAppBrowser, Media, Notification, Splash Screen, Storage (SQLite), etc. which were previously accessible only to native applications. Sencha Touch leverages JavaScript to create most of the UI components and change CSS of DOM elements on the fly. With JavaScript Engines being more efficient and faster than before, web apps run almost as smooth as native apps.

See also

Comparison of JavaScript Frameworks jQuery Mobile Tizen Android (operating system) iOS

References

Bibliography Jesus Garcia and Anthony De Moss, Mitchell Simoens, Sencha Touch in Action, ISBN 978-1-61729-037-4 Ajit Kumar, Sencha Touch Cookbook, ISBN 978-1-84951-544-3. Hiren J. Dave, Instant Sencha Touch, ISBN 9781782165996. Ajit Kumar, Sencha Touch Cookbook - Second Edition, ISBN 978-1-78216-918-5. Lee Boonstra, Hands-On Sencha Touch 2: A Real-World App Approach 1st Edition, ISBN 978-1-44936-652-0. Ajit Kumar, Sencha MVC Architecture, ISBN 978-1-84951-888-8. Matthew David, HTML5 Mobile Websites, Turbocharging HTML5 with jQuery, Sencha Touch, and Other Frameworks, ISBN 978-0-24081-814-6. https://developer.salesforce.com/page/Developing_Mobile_Applications_With_Force.com_And_Sencha_Touch

External links Official website

Illustrations

Sencha Touch illustration

Worked examples

Example 1 — a first encounter with Sencha Touch

Start with the simplest possible case. Write down what Sencha Touch claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Sencha Touch before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Sencha Touch ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Sencha Touch

In research
Sencha Touch appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Sencha Touch in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Sencha Touch is common in secondary-school and first-year university syllabi. It links to neighbouring topics Ajax (programming), HTML5, JavaScript libraries, so understanding it makes those chapters shorter.
In everyday life
Look for Sencha Touch outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Sencha Touch” →

How to study Sencha Touch in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Sencha Touch means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Sencha Touch out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Sencha Touch in simple terms?

Sencha Touch is a user interface (UI) JavaScript library, or web framework, specifically built for the Mobile Web. It can be used by Web developers to develop user interfaces for mobile web applications that look and feel like native applications on supported mobile devices.

Why does Sencha Touch matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Sencha Touch?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Sencha Touch.

Tags

  • Ajax (programming)
  • HTML5
  • JavaScript libraries
  • JavaScript web frameworks

Keep exploring