SlideShare ist ein Scribd-Unternehmen logo
Cross-Plattform Mobile Development

Sencha Touch & PhoneGap

                                      MobileTechCon 2011
                             14/Sep/2011 - Mainz, Germany

                                                              Stefan Kolb
                                                        Indiginox GmbH

                                     http://www.intomobile.com/wp-content/uploads/2011/02/pile-of-phones.jpg
Me, Myself & I
                    @stefan_kolb Social Media, baby!
                    stefankolb.de My blog is my castle

Hier macht‘s Spaß :-)




                                             Softwareentwickler
Sencha Touch




       https://lh5.googleusercontent.com/-MJUrGT-iyqQ/TYind_vJ7BI/AAAAAAAAKPM/lw7NADI2qgg/Japanese_Sencha_9_Tea.JPG
“   The first HTML5, Mobile
     Web App Framework

              http://www.sencha.com/products/touch




              http://fc04.deviantart.net/fs50/f/2009/333/1/7/Blue_Bubbles_Wallpaper_by_SonnyKingBlack.jpg
jQuery

              jQuery Wrapper
               DOM Element
<HTML>         DOM Element    append();
  DOM          DOM Element removeClass();
                     ...     position();


   $(‘#selector‘);
Sencha Touch

           Sencha Touch Widgets
                     List
<HTML>             Button
  DOM              Toolbar
                      ...

new Ext.List({ ... });
Sencha Touch


• HTML5, CSS3, JavaScript
• Basiert auf Ext JS (Platform)
• Cross-Platform
http://www.sencha.com/img/20110222-loopfuse.png
http://dev.sencha.com/deploy/touch/examples/kitchensink/
Sencha Touch
index.html
MVC
Model-View-Controller




                        http://rarewallpapers.com/_wallpapers/blueprint-1024x768.jpg
Managers


• Ext.regModel();
• Ext.regController();
• Ext.reg();
 • new Ext.###CLASS###({ });
Model erstellen
View erstellen
Controller erstellen
Funktionen
Data Package




    http://www.etleboro.com/picture_library/Server_room_4.jpg
& Sencha Touch




http://www.sencha.com/blog/countdown-to-ext-js-4-data-package/
Model


• Repräsentiert Daten
• Validierung von Daten
• Verbindung zu anderen Modellen
Store


• Sammlung von Model-Instanzen
• Datenmanagement für UI-
  Komponenten
Proxy

• Laden / Speichern von Model-Daten
• ClientProxy vs. ServerProxy
 • LocalStorageProxy, SessionStorageProxy,
   MemoryProxy
 • AjaxProxy, ScriptTagProxy

• CRUD / Operation-Objekt
User Interface
                                                   Design




  http://culturedcode.com/things/iphone/makingof/ThingsTouch-InterfaceStillLife.jpg
Components


• Visuellen Bestanteile einer App
• User Interface
Demo
Components




             http://media.oregonlive.com/ent_impact_arts/photo/leventijpg-1275f1d04cd5ba33.jpg
Container

• Wrapper für andere Components
• Hinzufügen, Einfügen und Entfernen
  von Components
• Anordnung der beinhaltenden
  Components mittels Layout
Layout


• Legt fest, wie Components innerhalb
  eines Containers gerendert wrden
• auto, fit, card, hbox, vbox
 • dock, field, box
fit
card
hbox
vbox
Container/Layout
      Konfiguration

• pack: start, center, end, justify
• align: start, center, end, stretch
• direction: normal, reverse
• width, height, flex
Container/Layout
 Konfiguration
Sencha Touch & PhoneGap
Touch
                                Events & Gestures


                 pinch/rotate   swipe



tap/double-tap                          tap & hold




                                         http://www.sencha.com/products/touch/
Demo
Touch Solitaire




                  http://media.oregonlive.com/ent_impact_arts/photo/leventijpg-1275f1d04cd5ba33.jpg
Style & Design

• CSS3
 • Unabhängig der Bildschirmauflösung

• Icons
• Animations
 • slide, pop, fade, flip & cube
 • Eigene Animationen mittels CSS
Demo
Styles & Design




                  http://media.oregonlive.com/ent_impact_arts/photo/leventijpg-1275f1d04cd5ba33.jpg
Theming




          http://www.sencha.com/products/touch/style-design
Lizenzen

• Open Source Licenses
 • GPL v3 & FLOSS

• Commercial Software License
• Commercial OEM License
Lizenzen

• Open Source Licenses
 • GPL v3 & FLOSS

• Commercial Software License
• Commercial OEM License
Offline         ScrollView       Android
HTML5
                  Charts
  Animations                  CSS3
                                           Maps
             Windows Phone
                                     Theming
Audio

 MVC                                       Video

BlackBerry                              History
               Ajax      Templates
    Forms
                        Layouts      Touch Events
                 iOS
Data Package
                       Animations
PhoneGap




           http://lh5.ggpht.com/-rmzR397-NWM/SJFLfL6_0OI/AAAAAAAAAB8/-yL_flScXAY/UTGC0101.jpg
Web-App
HTML5
   CSS             Native APIs
JavaScript
PhoneGap


• Native Bibliothek
• JavaScript
 • navigator.*
http://www.phonegap.com/about/features
http://docs.phonegap.com
deviceready?
PhoneGap Build

 build.phonegap.com
Demo
Sencha Touch & PhoneGap




                    http://media.oregonlive.com/ent_impact_arts/photo/leventijpg-1275f1d04cd5ba33.jpg
Fragen?
               Bitte nicht so schwierige :-)




       @stefan_kolb
stefan.kolb@indiginox.com
THX
I‘m up for beers




                   http://hi-zu-mi.deviantart.com/art/The-Legendary-152264959

Weitere ähnliche Inhalte

Sencha Touch & PhoneGap