SlideShare a Scribd company logo
1 of 27
techGarage Hackathon

    Titanium Mobile
Profile
• 小澤 栄一 (Ozawa Yoshikazu)

• KONAMI SCHOOL
• R-learning Co., Ltd.
  – 製品戦略室 CTO

• Twitter - @relax4u
• Facebook: yoshikazu.ozawa
Agenda
• Single Context Application
• Event Handler
  – UI component ・ Application Level
• UI Design
• Animation
• Social API
  – Twitter・Facebook・mixi
• Q&A
Single Context Application

  アプリケーションの書き方
Application Architecture

• Single Context Application
  – 基本的にこちらの方式を利用する


• Multi Context Application
  – こちらの方式はなるべく利用しない
     • KitchenSinkはこの方式で実装されているが、それ
       はデモ用のアプリだから。
Multi Context Application
app.js
  var win = Ti.UI.createWindow({
      title: “Main window”,
      url: “win.js”
  });
  win.open();
Multi Context Application
win.js
  var win = Ti.UI.CurrentWindow;
  var label1 = Ti.UI.createLabel({
      text: “hello”,
      width: ‘auto’, height: ‘auto’
  });
  win.add(label1);
Single Context Application
app.js
  var myapp = {};
  Ti.include(“ui.js”);
  var win = myapp.ui.createApplicationWindow();
  win.open();
Single Context Application
ui.js
   (function(){
    myapp.ui = {};
    myapp.ui.createApplicationWindow = function(){
      var win = Ti.UI.createWindow({title: ”Main window”});
      var label1 = Ti.UI.createLabel({
       text: “hello”, width: ‘auto’, height: ‘auto’});
      win.add(label1);
      return win;
    };
   })();
Event Handler

 イベント制御
UI Component Event Handler
• addEventListener
  var button = Ti.UI.createButton({
      text: “click”,
      width: 100, height: 30
  });
  button.addEventListener(‘click’, function(){
      alert(“clicked!”);
  });
UI Component Event Handler
• removeEventListener
  var onetime = function(){
      alert(“clicked!”);
      button.removeEventListener(‘click’, onetime);
  });
  button.addEventListener(‘click’, onetime);
Application level Event Handler
tab1.js
  var label1 = Ti.UI.createLabel ({
      text: “I am window 1”
  });
  Ti.App.addEventListener(‘update.label1’, function() {
      label1.text = “clicked!”
  });
Application level Event Handler
tab2.js
  var button = Ti.UI.createButton({
      title: “clicked!”, width: 100, height: 30
  });
  button.addEventListener(‘click’, funciton(){
      Ti.App.fireEvent(‘update.label1’);
  });
UI Design

デザインの基礎知識
Application UI
Tab Based Application   Single window Application
Application Layout

• Absolute
  – 座標を指定して並べていく
• Vertical
  – 垂直方向にUIを並べていくレイアウト
• Horizontal
  – 水平方向にUIを並べていくレイアウト
Application Layout

• Absolute
  – 座標を指定して並べていく
• Vertical
  – 垂直方向にUIを並べていくレイアウト
• Horizontal
  – 水平方向にUIを並べていくレイアウト
Animation

アニメーション基礎
How to use animation
• Ti.UI.Animation
  – top, width, opacity, drutation, delay


• Ti.UI.2DMatrix
  – Scale, Rotate, Translate
     • 行列の掛け算の順番に注意
        – Ti.UI.create2DMatrix().rotate(90).translate(10, 20)
        – Ti.UI.create2DMatrix().translate(10, 20).rotate(90)
How to translate
var view = Ti.UI.createView({
    backgroundColor: “#f00”,
    width: 50, height: 50, top: 10, left: 10
});
view.animate({
    top: 200, left: 200,
    duration: 3000
});
How to Rotate
var view = Ti.UI.createView({
    backgroundColor: “#f00”,
    width: 50, height: 50
});
view.animate({
    translate: Ti.UI.create2DMatrix().rotate(90)
    duration: 3000
});
How to Scale
var view = Ti.UI.createView({
    backgroundColor: “#f00”,
    width: 50, height: 50
});
view.animate({
    translate: Ti.UI.create2DMatrix().scale(2)
    duration: 3000
});
Social APIs

Twitter・Facebook・mixi連携
Social APIs
• Twitter
  – tm_twitter_api で簡単に
     • https://github.com/mogya/tm_twitter_api
• Facebook
  – Titanium で完全サポート
     • Ti.Facebook
• mixi
  – titanium-mixi-graph-api で簡単に
     • https://github.com/relax4u/titanium-mixi-graph-api
Q&A
Thanks



https://github.com/relax4u/tech-garage-hackathon/

More Related Content

Similar to TechGarage Hackaton

High Performance JavaScript - WebDirections USA 2010
High Performance JavaScript - WebDirections USA 2010High Performance JavaScript - WebDirections USA 2010
High Performance JavaScript - WebDirections USA 2010Nicholas Zakas
 
High Performance JavaScript - jQuery Conference SF Bay Area 2010
High Performance JavaScript - jQuery Conference SF Bay Area 2010High Performance JavaScript - jQuery Conference SF Bay Area 2010
High Performance JavaScript - jQuery Conference SF Bay Area 2010Nicholas Zakas
 
Selendroid - Selenium for Android
Selendroid - Selenium for AndroidSelendroid - Selenium for Android
Selendroid - Selenium for AndroidDominik Dary
 
Cross-platform Native App ontwikkeling met Appcelerator
Cross-platform Native App ontwikkeling met AppceleratorCross-platform Native App ontwikkeling met Appcelerator
Cross-platform Native App ontwikkeling met AppceleratorFokke Zandbergen
 
YUI for Mobile - HTML5DevConf 11
YUI for Mobile - HTML5DevConf 11YUI for Mobile - HTML5DevConf 11
YUI for Mobile - HTML5DevConf 11Gonzalo Cordero
 
JavaScript Timers, Power Consumption, and Performance
JavaScript Timers, Power Consumption, and PerformanceJavaScript Timers, Power Consumption, and Performance
JavaScript Timers, Power Consumption, and PerformanceNicholas Zakas
 
Programming iOS in C#
Programming iOS in C#Programming iOS in C#
Programming iOS in C#Frank Krueger
 
Sperimentazioni lezione6 from_designtoapplication copy
Sperimentazioni lezione6 from_designtoapplication copySperimentazioni lezione6 from_designtoapplication copy
Sperimentazioni lezione6 from_designtoapplication copySalvatore Iaconesi
 
Leaving Interface Builder Behind
Leaving Interface Builder BehindLeaving Interface Builder Behind
Leaving Interface Builder BehindJohn Wilker
 
The fundamental problems of GUI applications and why people choose React
The fundamental problems of GUI applications and why people choose ReactThe fundamental problems of GUI applications and why people choose React
The fundamental problems of GUI applications and why people choose ReactOliver N
 
Building html5 apps using Cordova
Building html5 apps using Cordova Building html5 apps using Cordova
Building html5 apps using Cordova David Voyles
 
Rockstar Android Testing (Mobile TechCon Munich 2014)
Rockstar Android Testing (Mobile TechCon Munich 2014)Rockstar Android Testing (Mobile TechCon Munich 2014)
Rockstar Android Testing (Mobile TechCon Munich 2014)Danny Preussler
 
Mobile developer is Software developer
Mobile developer is Software developerMobile developer is Software developer
Mobile developer is Software developerEugen Martynov
 
Mobile automation using appium.pptx
Mobile automation using appium.pptxMobile automation using appium.pptx
Mobile automation using appium.pptxvodQA
 
Mobile HTML, CSS, and JavaScript
Mobile HTML, CSS, and JavaScriptMobile HTML, CSS, and JavaScript
Mobile HTML, CSS, and JavaScriptfranksvalli
 
Building native mobile apps for all platforms using Codename One - Shai Almog...
Building native mobile apps for all platforms using Codename One - Shai Almog...Building native mobile apps for all platforms using Codename One - Shai Almog...
Building native mobile apps for all platforms using Codename One - Shai Almog...Codemotion Tel Aviv
 

Similar to TechGarage Hackaton (20)

High Performance JavaScript - WebDirections USA 2010
High Performance JavaScript - WebDirections USA 2010High Performance JavaScript - WebDirections USA 2010
High Performance JavaScript - WebDirections USA 2010
 
jQuery UI and Plugins
jQuery UI and PluginsjQuery UI and Plugins
jQuery UI and Plugins
 
High Performance JavaScript - jQuery Conference SF Bay Area 2010
High Performance JavaScript - jQuery Conference SF Bay Area 2010High Performance JavaScript - jQuery Conference SF Bay Area 2010
High Performance JavaScript - jQuery Conference SF Bay Area 2010
 
Selendroid - Selenium for Android
Selendroid - Selenium for AndroidSelendroid - Selenium for Android
Selendroid - Selenium for Android
 
Cross-platform Native App ontwikkeling met Appcelerator
Cross-platform Native App ontwikkeling met AppceleratorCross-platform Native App ontwikkeling met Appcelerator
Cross-platform Native App ontwikkeling met Appcelerator
 
YUI for Mobile - HTML5DevConf 11
YUI for Mobile - HTML5DevConf 11YUI for Mobile - HTML5DevConf 11
YUI for Mobile - HTML5DevConf 11
 
JavaScript Timers, Power Consumption, and Performance
JavaScript Timers, Power Consumption, and PerformanceJavaScript Timers, Power Consumption, and Performance
JavaScript Timers, Power Consumption, and Performance
 
mobl
moblmobl
mobl
 
Programming iOS in C#
Programming iOS in C#Programming iOS in C#
Programming iOS in C#
 
Sperimentazioni lezione6 from_designtoapplication copy
Sperimentazioni lezione6 from_designtoapplication copySperimentazioni lezione6 from_designtoapplication copy
Sperimentazioni lezione6 from_designtoapplication copy
 
Leaving Interface Builder Behind
Leaving Interface Builder BehindLeaving Interface Builder Behind
Leaving Interface Builder Behind
 
The fundamental problems of GUI applications and why people choose React
The fundamental problems of GUI applications and why people choose ReactThe fundamental problems of GUI applications and why people choose React
The fundamental problems of GUI applications and why people choose React
 
Building html5 apps using Cordova
Building html5 apps using Cordova Building html5 apps using Cordova
Building html5 apps using Cordova
 
Yui mobile
Yui mobileYui mobile
Yui mobile
 
SwiftでUIKitDynamics
SwiftでUIKitDynamicsSwiftでUIKitDynamics
SwiftでUIKitDynamics
 
Rockstar Android Testing (Mobile TechCon Munich 2014)
Rockstar Android Testing (Mobile TechCon Munich 2014)Rockstar Android Testing (Mobile TechCon Munich 2014)
Rockstar Android Testing (Mobile TechCon Munich 2014)
 
Mobile developer is Software developer
Mobile developer is Software developerMobile developer is Software developer
Mobile developer is Software developer
 
Mobile automation using appium.pptx
Mobile automation using appium.pptxMobile automation using appium.pptx
Mobile automation using appium.pptx
 
Mobile HTML, CSS, and JavaScript
Mobile HTML, CSS, and JavaScriptMobile HTML, CSS, and JavaScript
Mobile HTML, CSS, and JavaScript
 
Building native mobile apps for all platforms using Codename One - Shai Almog...
Building native mobile apps for all platforms using Codename One - Shai Almog...Building native mobile apps for all platforms using Codename One - Shai Almog...
Building native mobile apps for all platforms using Codename One - Shai Almog...
 

Recently uploaded

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 

Recently uploaded (20)

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 

TechGarage Hackaton

  • 1. techGarage Hackathon Titanium Mobile
  • 2. Profile • 小澤 栄一 (Ozawa Yoshikazu) • KONAMI SCHOOL • R-learning Co., Ltd. – 製品戦略室 CTO • Twitter - @relax4u • Facebook: yoshikazu.ozawa
  • 3. Agenda • Single Context Application • Event Handler – UI component ・ Application Level • UI Design • Animation • Social API – Twitter・Facebook・mixi • Q&A
  • 4. Single Context Application アプリケーションの書き方
  • 5. Application Architecture • Single Context Application – 基本的にこちらの方式を利用する • Multi Context Application – こちらの方式はなるべく利用しない • KitchenSinkはこの方式で実装されているが、それ はデモ用のアプリだから。
  • 6. Multi Context Application app.js var win = Ti.UI.createWindow({ title: “Main window”, url: “win.js” }); win.open();
  • 7. Multi Context Application win.js var win = Ti.UI.CurrentWindow; var label1 = Ti.UI.createLabel({ text: “hello”, width: ‘auto’, height: ‘auto’ }); win.add(label1);
  • 8. Single Context Application app.js var myapp = {}; Ti.include(“ui.js”); var win = myapp.ui.createApplicationWindow(); win.open();
  • 9. Single Context Application ui.js (function(){ myapp.ui = {}; myapp.ui.createApplicationWindow = function(){ var win = Ti.UI.createWindow({title: ”Main window”}); var label1 = Ti.UI.createLabel({ text: “hello”, width: ‘auto’, height: ‘auto’}); win.add(label1); return win; }; })();
  • 11. UI Component Event Handler • addEventListener var button = Ti.UI.createButton({ text: “click”, width: 100, height: 30 }); button.addEventListener(‘click’, function(){ alert(“clicked!”); });
  • 12. UI Component Event Handler • removeEventListener var onetime = function(){ alert(“clicked!”); button.removeEventListener(‘click’, onetime); }); button.addEventListener(‘click’, onetime);
  • 13. Application level Event Handler tab1.js var label1 = Ti.UI.createLabel ({ text: “I am window 1” }); Ti.App.addEventListener(‘update.label1’, function() { label1.text = “clicked!” });
  • 14. Application level Event Handler tab2.js var button = Ti.UI.createButton({ title: “clicked!”, width: 100, height: 30 }); button.addEventListener(‘click’, funciton(){ Ti.App.fireEvent(‘update.label1’); });
  • 16. Application UI Tab Based Application Single window Application
  • 17. Application Layout • Absolute – 座標を指定して並べていく • Vertical – 垂直方向にUIを並べていくレイアウト • Horizontal – 水平方向にUIを並べていくレイアウト
  • 18. Application Layout • Absolute – 座標を指定して並べていく • Vertical – 垂直方向にUIを並べていくレイアウト • Horizontal – 水平方向にUIを並べていくレイアウト
  • 20. How to use animation • Ti.UI.Animation – top, width, opacity, drutation, delay • Ti.UI.2DMatrix – Scale, Rotate, Translate • 行列の掛け算の順番に注意 – Ti.UI.create2DMatrix().rotate(90).translate(10, 20) – Ti.UI.create2DMatrix().translate(10, 20).rotate(90)
  • 21. How to translate var view = Ti.UI.createView({ backgroundColor: “#f00”, width: 50, height: 50, top: 10, left: 10 }); view.animate({ top: 200, left: 200, duration: 3000 });
  • 22. How to Rotate var view = Ti.UI.createView({ backgroundColor: “#f00”, width: 50, height: 50 }); view.animate({ translate: Ti.UI.create2DMatrix().rotate(90) duration: 3000 });
  • 23. How to Scale var view = Ti.UI.createView({ backgroundColor: “#f00”, width: 50, height: 50 }); view.animate({ translate: Ti.UI.create2DMatrix().scale(2) duration: 3000 });
  • 25. Social APIs • Twitter – tm_twitter_api で簡単に • https://github.com/mogya/tm_twitter_api • Facebook – Titanium で完全サポート • Ti.Facebook • mixi – titanium-mixi-graph-api で簡単に • https://github.com/relax4u/titanium-mixi-graph-api
  • 26. Q&A