SlideShare a Scribd company logo
Multi-platform
mobile
development
with Titanium +
Alloy
About me
Have been using Titanium since late 2009
Former Titanium trainer in the Caribbean and Latin America
Obsessed with cross-platform mobile develoment
Love Javascript hacking and technology startups
I'm a hacker in constant training
About Appcelerator and
Titanium
JavaScript SDK to develop native, cross-platform mobile apps
500,000+ developers worldwide
Titanium is free and Open Source
Supports iOS, Android, Blackberry 10, Tizen and Windows in the
works
The Appcelerator Platform is the enterprise-grade suite of products
based on Titanium
What do I mean by cross-
platform?
To understand the power of Titanium, we
first need to understand the problem
Titanium solves
Is a Web-app cross-platform?
Let's use Facebook® as example
Is a Web-app cross-platform?
A web-app is cross-platform only if we
define a cross-platform app as an app that
can run on multiple platforms
Cross-platform is much more
than running on different
platforms
All platforms have their own set of
NATIVE UI elements and UX patterns
Building native mobile apps
the traditional way is not trivial
Objective-C (iOS)
UIButton *myButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[myButton setTitle:@"Click Me!" forState:UIControlStateNormal];
Java (Android)
Button myButton = new Button(this);
myButton.setText("Click Me!");
Titanium solves this problem
by offering a JavaScript SDK
that normalizes the underlying
SDKs
Titanium/JavaScript (iOS,
Android)
var myButton=Ti.UI.createButton({
title:'Click Me!'
})
Alloy is Titanium's MVC
framework that uses XML, TSS
(like CSS) and JavaScript
Titanium/Alloy (iOS, Android)
<Alloy>
<Button>Click Me!</Button>
</Alloy>
Alloy App Folder Structure
Sample Two-tab App
UI DEFINITION: INDEX.XML
<alloy>
<tabgroup id="win">
<tab title="Tab 1" icon="KS_nav_ui.png">
<window title="Tab 1">
<label class="mylabel">I am Window 1</label>
</window>
</tab>
<tab title="Tab 2" icon="KS_nav_views.png">
<window title="Tab 2">
<label class="mylabel">I am Window 2</label>
</window>
</tab>
</tabgroup>
</alloy>
UI STYLING: INDEX.TSS
"Window": {
backgroundColor: "#fff"
},
"Label": {
width: Ti.UI.SIZE,
height: Ti.UI.SIZE,
color: "#000",
font: {
fontSize: 20,
fontFamily: 'Helvetica Neue'
},
textAlign: 'center'
},
"#win":{
top: 0,
left: 0
},
".mylabel":{
color: "#000"
}
Running on iOS 6
Running on iOS 7
Running on Android 2.x
Running on Android ICS - Holo
Dark
Running on Android ICS - Holo
Light
Dealing with native UI
elements from the same code-
base
Simple single-window app
INDEX.XML
INDEX.TSS
INDEX.JS
The vocabulary is well
documented
http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.UI.Window
View the Source
https://github.com/appcelerator/KitchenSink/tree/master/Resources
Built into Alloy
Backbone
Data-binding
Synchronization adapters
Underscore.js
Moment.js
Widgets
Themes
More cool stuff from
Appcelerator
ACS - Appcelerator Cloud Services
Node.ACS
Command-line interface (CLI)
Get started today!
Runs on Mac, Windows and Linux
iOS development requires a Mac
Requires installation and configuration of all native tools (Xcode,
Android SDK manager, etc)
Download Titanium Studio from my.appcelerator.com
Start hacking!
Thank you!
Questions?
Follow me on
Twitter: @ricardoalcocer
Github: /ricardoalcocer

More Related Content

PPTX
Build2020: Xamarin.Forms Experts Q&A
PPTX
Choosing the Best Mobile App Framework
PDF
Typescript vas ES6
PPTX
Choosing The Best Mobile App Framework
KEY
Cross platform mobile app development(1)
PPTX
Build mini - Windows 10 Dev & Cross platform Dev
PPT
MonoDroid Crossplatform
PPTX
The Future of Xamarin
Build2020: Xamarin.Forms Experts Q&A
Choosing the Best Mobile App Framework
Typescript vas ES6
Choosing The Best Mobile App Framework
Cross platform mobile app development(1)
Build mini - Windows 10 Dev & Cross platform Dev
MonoDroid Crossplatform
The Future of Xamarin

Similar to Multi platform development using titanium + alloy (20)

PDF
Appcelerator Titanium Intro (2014)
PPT
Titanium Meetup Deck
PPT
OSCON Titanium Tutorial
PPT
Native Mobile Application Using Open Source
PDF
Introduction to Appcelerator Titanium
PDF
Intro to appcelerator
PPTX
Introduction to building multi platform mobile applications with javascript u...
PPTX
Welcome to Titanium
KEY
Appcelerator Titanium at Mobile 2.0
ZIP
Mobile for the rest of us
KEY
Mobile 2.0 Event: Mobile for the rest of us using Appcelerator Titanium
PPT
Appcelerator Corporate Overview
PPTX
Titanium Introduction
PPTX
Titanium Introduction
PPTX
Presentation
PPTX
tittanium
PPTX
Primers on mobile application development
PDF
Intro to Appcelerator Titanium - Code for Fort Lauderdale 2015
PDF
The Big Easy: Native Mobile App Development with Appcelerator Titanium and Ja...
PDF
Android development made easy with appcelerator titanium
Appcelerator Titanium Intro (2014)
Titanium Meetup Deck
OSCON Titanium Tutorial
Native Mobile Application Using Open Source
Introduction to Appcelerator Titanium
Intro to appcelerator
Introduction to building multi platform mobile applications with javascript u...
Welcome to Titanium
Appcelerator Titanium at Mobile 2.0
Mobile for the rest of us
Mobile 2.0 Event: Mobile for the rest of us using Appcelerator Titanium
Appcelerator Corporate Overview
Titanium Introduction
Titanium Introduction
Presentation
tittanium
Primers on mobile application development
Intro to Appcelerator Titanium - Code for Fort Lauderdale 2015
The Big Easy: Native Mobile App Development with Appcelerator Titanium and Ja...
Android development made easy with appcelerator titanium
Ad

More from ralcocer (15)

PDF
Building websites with Node.ACS
PDF
Develop your first mobile App for iOS and Android
PPTX
Slides for tiTokyo 2013 - Japanese version
PPTX
Appcelerator Alloy Deep Dive - tiTokyo 2013
PDF
Learning Appcelerator® Alloy™
PDF
De Wordpress.com a Wordpress.org
PDF
Barcamp Mayaguez 2012
PDF
Cómo crear plugins para Wordpress
PDF
Open Source, estándares y arquitecturas Web 2.0
PDF
El pensamiento crítico y el uso de tecnología
PDF
El OpenSource en la educación
PDF
El valor educativo del Open Source
PDF
Presentación APH
PDF
Educapr Oct2010
PPT
The Future is Open - Pechakucha@SeriouslyCreative - August 26, 2010
Building websites with Node.ACS
Develop your first mobile App for iOS and Android
Slides for tiTokyo 2013 - Japanese version
Appcelerator Alloy Deep Dive - tiTokyo 2013
Learning Appcelerator® Alloy™
De Wordpress.com a Wordpress.org
Barcamp Mayaguez 2012
Cómo crear plugins para Wordpress
Open Source, estándares y arquitecturas Web 2.0
El pensamiento crítico y el uso de tecnología
El OpenSource en la educación
El valor educativo del Open Source
Presentación APH
Educapr Oct2010
The Future is Open - Pechakucha@SeriouslyCreative - August 26, 2010
Ad

Recently uploaded (20)

PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
Big Data Technologies - Introduction.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
KodekX | Application Modernization Development
PDF
Empathic Computing: Creating Shared Understanding
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Cloud computing and distributed systems.
NewMind AI Weekly Chronicles - August'25 Week I
Per capita expenditure prediction using model stacking based on satellite ima...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Review of recent advances in non-invasive hemoglobin estimation
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Spectral efficient network and resource selection model in 5G networks
MIND Revenue Release Quarter 2 2025 Press Release
Big Data Technologies - Introduction.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Network Security Unit 5.pdf for BCA BBA.
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
KodekX | Application Modernization Development
Empathic Computing: Creating Shared Understanding
20250228 LYD VKU AI Blended-Learning.pptx
Cloud computing and distributed systems.

Multi platform development using titanium + alloy