SlideShare una empresa de Scribd logo
1 de 27
Descargar para leer sin conexión
http://www.flickr.com/photos/vaucher/5763894833/

11   11   28
11   11   28
11   11   28
http://www.flickr.com/photos/
     panman_/4507107513/




11   11   28
// comment
     var sampleCode = ‘Hello’;
     alert(sampleCode);




11   11   28
JavaScript          Objective-C Java        TitaniumMobile   API
                       ※           JavaScript      Objective-C Java




                                        Titanium
                        iOS                            Android OS
                                         Mobile
                  Native iOS app                   Native Android app



11   11   28
Objective-C   Titanium.UI.View   Java   Titanium.UI.View




11   11   28
✤




     ✤




11   11   28
✤




           ✤




11   11   28
http://www.flickr.com/photos/alanant/4483533096/

11   11   28
✤




           ✤



           ✤




           ✤




11   11   28
✤




     ✤




           ✤




           ✤




           ✤




11   11   28
✤




           ✤




           ✤




               ✤




11   11   28
11   11   28
11   11   28
✤




           ✤




11   11   28
// this sets the background color of the master
      UIView (when there are no windows/tab groups on it)
      Titanium.UI.setBackgroundColor('#000');
      // create tab group
      var tabGroup = Titanium.UI.createTabGroup();
      //
      // create base UI tab and root window
      //
      var win1 = Titanium.UI.createWindow({
          title:'Tab 1',
          backgroundColor:'#fff'
      });
      var tab1 = Titanium.UI.createTab({
          icon:'KS_nav_views.png',
          title:'Tab 1',
          window:win1
      });
      var label1 = Titanium.UI.createLabel({
      !   color:'#999',
      !   text:'I am Window 1',
      !   font:{fontSize:20,fontFamily:'Helvetica Neue'},
      !   textAlign:'center',
      !   width:'auto'
      });
      win1.add(label1);


11   11   28
11   11   28
// create controls tab and root window
      //
      var win2 = Titanium.UI.createWindow({
          title:'Tab 2',
          backgroundColor:'#fff'
      });
      var tab2 = Titanium.UI.createTab({
          icon:'KS_nav_ui.png',
          title:'Tab 2',
          window:win2
      });
      var label2 = Titanium.UI.createLabel({
      !   color:'#999',
      !   text:'I am Window 2',
      !   font:{fontSize:20,fontFamily:'Helvetica Neue'},
      !   textAlign:'center',
      !   width:'auto'
      });
      win2.add(label2);
      //
      // add tabs
      //
      tabGroup.addTab(tab1);
      tabGroup.addTab(tab2);
      // open tab group
      tabGroup.open();
11   11   28
// this sets the background color of the master
      UIView (when there are no windows/tab groups on it)
      Titanium.UI.setBackgroundColor('#000');
      // create tab group
      var tabGroup = Titanium.UI.createTabGroup();
      //
      // create base UI tab and root window
      //
      var win1 = Titanium.UI.createWindow({
          title:'Tab 1',
          backgroundColor:'#fff'
      });
      var tab1 = Titanium.UI.createTab({
          icon:'KS_nav_views.png',
          title:'Tab 1',
          window:win1
      });
      var label1 = Titanium.UI.createLabel({
      !   color:'#999',
      !   text:'I am Window 1',
      !   font:{fontSize:20,fontFamily:'Helvetica Neue'},
      !   textAlign:'center',
      !   width:'auto'
      });
      win1.add(label1);


11   11   28
// this sets the background color of the master
      UIView (when there are no windows/tab groups on it)
      Titanium.UI.setBackgroundColor('#000');
      // create tab group
      var tabGroup = Titanium.UI.createTabGroup();
      //
      // create base UI tab and root window
      //
      var win1 = Titanium.UI.createWindow({
          title:'Tab 1',
          backgroundColor:'#fff'
      });
      var tab1 = Titanium.UI.createTab({
          icon:'KS_nav_views.png',
          title:'Tab 1',
          window:win1
      });
      var webView = Titanium.UI.createWebView({
      !   url:'http://www.google.co.jp'
      });
      win1.add(webView);




11   11   28
✤




           ✤




     ✤




           ✤




           ✤




11   11   28
var win1 = Titanium.UI.createWindow({
          title:'Tab 1',
          backgroundColor:'#fff'
      });
      var tab1 = Titanium.UI.createTab({
          icon:'KS_nav_views.png',
          title:'Tab 1',
          window:win1
      });
      var webView = Titanium.UI.createWebView({
      });
      webView.html =
      '<html>' +
          '<head>' +
            '<title>            HTML     </title>' +
               '</head>' +
               '<body>' +
                 '<h1>       HTML              </h1>' +
                 '<p>                         </p>' +
          '</body>' +
        '</html>';
      win1.add(webView);




11   11   28
Titanium.UI.setBackgroundColor('#FFF');               urlBox.addEventListener('blur',function(e){
      var tabGroup = Titanium.UI.createTabGroup();            actInd.show();
      var win1 = Titanium.UI.createWindow({                   webView.url = e.value;
         title:'          ',                                  webView.reload();
           backgroundColor:'#fff'                           });
      });                                                   win1.add(urlBox);
      var tab1 = Titanium.UI.createTab({
          icon:'KS_nav_views.png',                          //
          title:'Tab 1',                                    var stopBtn = Ti.UI.createButton({
          window:win1                                         title:'stop',
      });                                                     top:10,
      //    URL                                               left:220,
      var urlBox = Titanium.UI.createTextField({              width:60,
        color:'#336699',                                      height:30,
        top:10,                                               systemButton:Titanium.UI.iPhone.SystemButton.STOP
        left:10,                                            });
        width:200,                                          stopBtn.addEventListener('click',function(e){
        height:30,                                            webView.stopLoading();
        hintText:'enter url',                                 actInd.hide();
        keyboardType:Titanium.UI.KEYBOARD_URL,              });
        returnKeyType:Titanium.UI.RETURNKEY_DEFAULT,        win1.add(stopBtn);
        autocapitalization: false,
        borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED
      });


11   11   28
//        HTML                 WebView               //
      var webView = Titanium.UI.createWebView({            ActivityIndicator
        top:50,                                            var actInd = Titanium.UI.createActivityIndicator({
        left:0,                                              top:50,
        width:'auto',                                        height:55,
        height:'auto'                                        width:'auto',
      });                                                    opacity:0.5,
      webView.addEventListener('beforeload',function(e){     color:'#FFFFFF',
        actInd.show();                                       backgroundColor:'#000',
      });                                                    borderRadius:5,
      webView.addEventListener('load',function(e){           borderColor:'#000',
        actInd.hide();                                       font:{fontFamily:'Helvetica Neue', fontSize:13},
      });                                                    message:' Loading...',
      win1.add(webView);
                                                           style:Titanium.UI.iPhone.ActivityIndicatorStyle.PLA
                                                           IN
                                                           });
                                                           win1.add(actInd);


                                                           tabGroup.addTab(tab1);
                                                           tabGroup.open();




11   11    28
✤




     ✤




           ✤




           ✤




11   11   28
✤




           ✤




               ✤




               ✤




               ✤




                   ✤




11   11   28

Más contenido relacionado

La actualidad más candente

20130614 Titanium簡介@政大資科
20130614 Titanium簡介@政大資科20130614 Titanium簡介@政大資科
20130614 Titanium簡介@政大資科Justin Lee
 
Chief Keef's hologram can't catch a break, and it's a win for Keef
Chief Keef's hologram can't catch a break, and it's a win for KeefChief Keef's hologram can't catch a break, and it's a win for Keef
Chief Keef's hologram can't catch a break, and it's a win for Keefchicagonewsonlineradio
 
함수형 프로그래밍과 안드로이드 테스팅
함수형 프로그래밍과 안드로이드 테스팅 함수형 프로그래밍과 안드로이드 테스팅
함수형 프로그래밍과 안드로이드 테스팅 MireukPark
 
Intro to jQuery UI
Intro to jQuery UIIntro to jQuery UI
Intro to jQuery UIappendTo
 
UISearchController par Stéphane sudre
UISearchController par Stéphane sudreUISearchController par Stéphane sudre
UISearchController par Stéphane sudreCocoaHeads France
 
Prehľad cross-platform mobilných riešení pre vývoj hier a aplikácií
Prehľad cross-platform mobilných riešení pre vývoj hier a aplikáciíPrehľad cross-platform mobilných riešení pre vývoj hier a aplikácií
Prehľad cross-platform mobilných riešení pre vývoj hier a aplikáciíJozef Prídavok
 
Xcode 11におけるXCUITestの挙動
Xcode 11におけるXCUITestの挙動Xcode 11におけるXCUITestの挙動
Xcode 11におけるXCUITestの挙動Kazuaki Matsuo
 
Meteor로 만드는 modern web application
Meteor로 만드는 modern web applicationMeteor로 만드는 modern web application
Meteor로 만드는 modern web applicationJaeho Lee
 
2015 Key Ingredient Cook-Off
2015 Key Ingredient Cook-Off2015 Key Ingredient Cook-Off
2015 Key Ingredient Cook-Offirwinvifxcfesre
 
Check out our photos of the Pixies' Metro show
Check out our photos of the Pixies' Metro showCheck out our photos of the Pixies' Metro show
Check out our photos of the Pixies' Metro showchicagonewsyesterday
 

La actualidad más candente (11)

20130614 Titanium簡介@政大資科
20130614 Titanium簡介@政大資科20130614 Titanium簡介@政大資科
20130614 Titanium簡介@政大資科
 
Chief Keef's hologram can't catch a break, and it's a win for Keef
Chief Keef's hologram can't catch a break, and it's a win for KeefChief Keef's hologram can't catch a break, and it's a win for Keef
Chief Keef's hologram can't catch a break, and it's a win for Keef
 
함수형 프로그래밍과 안드로이드 테스팅
함수형 프로그래밍과 안드로이드 테스팅 함수형 프로그래밍과 안드로이드 테스팅
함수형 프로그래밍과 안드로이드 테스팅
 
Intro to jQuery UI
Intro to jQuery UIIntro to jQuery UI
Intro to jQuery UI
 
UISearchController par Stéphane sudre
UISearchController par Stéphane sudreUISearchController par Stéphane sudre
UISearchController par Stéphane sudre
 
Prehľad cross-platform mobilných riešení pre vývoj hier a aplikácií
Prehľad cross-platform mobilných riešení pre vývoj hier a aplikáciíPrehľad cross-platform mobilných riešení pre vývoj hier a aplikácií
Prehľad cross-platform mobilných riešení pre vývoj hier a aplikácií
 
Xcode 11におけるXCUITestの挙動
Xcode 11におけるXCUITestの挙動Xcode 11におけるXCUITestの挙動
Xcode 11におけるXCUITestの挙動
 
Get more votes!
Get more votes!Get more votes!
Get more votes!
 
Meteor로 만드는 modern web application
Meteor로 만드는 modern web applicationMeteor로 만드는 modern web application
Meteor로 만드는 modern web application
 
2015 Key Ingredient Cook-Off
2015 Key Ingredient Cook-Off2015 Key Ingredient Cook-Off
2015 Key Ingredient Cook-Off
 
Check out our photos of the Pixies' Metro show
Check out our photos of the Pixies' Metro showCheck out our photos of the Pixies' Metro show
Check out our photos of the Pixies' Metro show
 

Más de Hiroshi Oyamada

2016 02-25-crawler-study-01
2016 02-25-crawler-study-012016 02-25-crawler-study-01
2016 02-25-crawler-study-01Hiroshi Oyamada
 
育児を支える技術〜クローラーとかスクレイピング
育児を支える技術〜クローラーとかスクレイピング育児を支える技術〜クローラーとかスクレイピング
育児を支える技術〜クローラーとかスクレイピングHiroshi Oyamada
 
日々の面倒をプログラミングで解決!【入門編】
日々の面倒をプログラミングで解決!【入門編】日々の面倒をプログラミングで解決!【入門編】
日々の面倒をプログラミングで解決!【入門編】Hiroshi Oyamada
 
2014 05-17-titanium hamamatsuvol3
2014 05-17-titanium hamamatsuvol32014 05-17-titanium hamamatsuvol3
2014 05-17-titanium hamamatsuvol3Hiroshi Oyamada
 
20140319 titanium meetupvol17
20140319 titanium meetupvol1720140319 titanium meetupvol17
20140319 titanium meetupvol17Hiroshi Oyamada
 
2014 02-19-titanium meetupvol16
2014 02-19-titanium meetupvol162014 02-19-titanium meetupvol16
2014 02-19-titanium meetupvol16Hiroshi Oyamada
 
20130910 titanium meetupvol11
20130910 titanium meetupvol1120130910 titanium meetupvol11
20130910 titanium meetupvol11Hiroshi Oyamada
 
勉強会主催者のための勉強会
勉強会主催者のための勉強会勉強会主催者のための勉強会
勉強会主催者のための勉強会Hiroshi Oyamada
 
20130613 titanium meetupvol9
20130613 titanium meetupvol920130613 titanium meetupvol9
20130613 titanium meetupvol9Hiroshi Oyamada
 
2013 06-11-craft beerfanlt
2013 06-11-craft beerfanlt2013 06-11-craft beerfanlt
2013 06-11-craft beerfanltHiroshi Oyamada
 
2013 06-05-web-career-talk-at-coedo
2013 06-05-web-career-talk-at-coedo2013 06-05-web-career-talk-at-coedo
2013 06-05-web-career-talk-at-coedoHiroshi Oyamada
 
20130412 titanium meetupvol7
20130412 titanium meetupvol720130412 titanium meetupvol7
20130412 titanium meetupvol7Hiroshi Oyamada
 
2013 02-28-bussiness-plan-about-titanium
2013 02-28-bussiness-plan-about-titanium2013 02-28-bussiness-plan-about-titanium
2013 02-28-bussiness-plan-about-titaniumHiroshi Oyamada
 
20130126 titanium新年会
20130126 titanium新年会20130126 titanium新年会
20130126 titanium新年会Hiroshi Oyamada
 
20130125 titanium meetupvol5
20130125 titanium meetupvol520130125 titanium meetupvol5
20130125 titanium meetupvol5Hiroshi Oyamada
 
2012 12-17-titanium meetupvol4
2012 12-17-titanium meetupvol42012 12-17-titanium meetupvol4
2012 12-17-titanium meetupvol4Hiroshi Oyamada
 

Más de Hiroshi Oyamada (20)

2016 02-25-crawler-study-01
2016 02-25-crawler-study-012016 02-25-crawler-study-01
2016 02-25-crawler-study-01
 
2016 02-09-co-edo lt
2016 02-09-co-edo lt2016 02-09-co-edo lt
2016 02-09-co-edo lt
 
2015 12-19-ruby rails
2015 12-19-ruby rails2015 12-19-ruby rails
2015 12-19-ruby rails
 
2015 07-04-ruby rails
2015 07-04-ruby rails2015 07-04-ruby rails
2015 07-04-ruby rails
 
育児を支える技術〜クローラーとかスクレイピング
育児を支える技術〜クローラーとかスクレイピング育児を支える技術〜クローラーとかスクレイピング
育児を支える技術〜クローラーとかスクレイピング
 
日々の面倒をプログラミングで解決!【入門編】
日々の面倒をプログラミングで解決!【入門編】日々の面倒をプログラミングで解決!【入門編】
日々の面倒をプログラミングで解決!【入門編】
 
2014 05-17-titanium hamamatsuvol3
2014 05-17-titanium hamamatsuvol32014 05-17-titanium hamamatsuvol3
2014 05-17-titanium hamamatsuvol3
 
20140319 titanium meetupvol17
20140319 titanium meetupvol1720140319 titanium meetupvol17
20140319 titanium meetupvol17
 
2014 02-19-titanium meetupvol16
2014 02-19-titanium meetupvol162014 02-19-titanium meetupvol16
2014 02-19-titanium meetupvol16
 
TitaniumMeetUpVol13
TitaniumMeetUpVol13TitaniumMeetUpVol13
TitaniumMeetUpVol13
 
20130910 titanium meetupvol11
20130910 titanium meetupvol1120130910 titanium meetupvol11
20130910 titanium meetupvol11
 
勉強会主催者のための勉強会
勉強会主催者のための勉強会勉強会主催者のための勉強会
勉強会主催者のための勉強会
 
20130613 titanium meetupvol9
20130613 titanium meetupvol920130613 titanium meetupvol9
20130613 titanium meetupvol9
 
2013 06-11-craft beerfanlt
2013 06-11-craft beerfanlt2013 06-11-craft beerfanlt
2013 06-11-craft beerfanlt
 
2013 06-05-web-career-talk-at-coedo
2013 06-05-web-career-talk-at-coedo2013 06-05-web-career-talk-at-coedo
2013 06-05-web-career-talk-at-coedo
 
20130412 titanium meetupvol7
20130412 titanium meetupvol720130412 titanium meetupvol7
20130412 titanium meetupvol7
 
2013 02-28-bussiness-plan-about-titanium
2013 02-28-bussiness-plan-about-titanium2013 02-28-bussiness-plan-about-titanium
2013 02-28-bussiness-plan-about-titanium
 
20130126 titanium新年会
20130126 titanium新年会20130126 titanium新年会
20130126 titanium新年会
 
20130125 titanium meetupvol5
20130125 titanium meetupvol520130125 titanium meetupvol5
20130125 titanium meetupvol5
 
2012 12-17-titanium meetupvol4
2012 12-17-titanium meetupvol42012 12-17-titanium meetupvol4
2012 12-17-titanium meetupvol4
 

20111130 titanium mobile

  • 2. 11 11 28
  • 3. 11 11 28
  • 4. http://www.flickr.com/photos/ panman_/4507107513/ 11 11 28
  • 5. // comment var sampleCode = ‘Hello’; alert(sampleCode); 11 11 28
  • 6. JavaScript Objective-C Java TitaniumMobile API ※ JavaScript Objective-C Java Titanium iOS Android OS Mobile Native iOS app Native Android app 11 11 28
  • 7. Objective-C Titanium.UI.View Java Titanium.UI.View 11 11 28
  • 8. ✤ 11 11 28
  • 9. ✤ 11 11 28
  • 11. ✤ ✤ ✤ 11 11 28
  • 12. ✤ ✤ ✤ ✤ 11 11 28
  • 13. ✤ ✤ ✤ 11 11 28
  • 14. 11 11 28
  • 15. 11 11 28
  • 16. ✤ 11 11 28
  • 17. // this sets the background color of the master UIView (when there are no windows/tab groups on it) Titanium.UI.setBackgroundColor('#000'); // create tab group var tabGroup = Titanium.UI.createTabGroup(); // // create base UI tab and root window // var win1 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff' }); var tab1 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'Tab 1', window:win1 }); var label1 = Titanium.UI.createLabel({ ! color:'#999', ! text:'I am Window 1', ! font:{fontSize:20,fontFamily:'Helvetica Neue'}, ! textAlign:'center', ! width:'auto' }); win1.add(label1); 11 11 28
  • 18. 11 11 28
  • 19. // create controls tab and root window // var win2 = Titanium.UI.createWindow({ title:'Tab 2', backgroundColor:'#fff' }); var tab2 = Titanium.UI.createTab({ icon:'KS_nav_ui.png', title:'Tab 2', window:win2 }); var label2 = Titanium.UI.createLabel({ ! color:'#999', ! text:'I am Window 2', ! font:{fontSize:20,fontFamily:'Helvetica Neue'}, ! textAlign:'center', ! width:'auto' }); win2.add(label2); // // add tabs // tabGroup.addTab(tab1); tabGroup.addTab(tab2); // open tab group tabGroup.open(); 11 11 28
  • 20. // this sets the background color of the master UIView (when there are no windows/tab groups on it) Titanium.UI.setBackgroundColor('#000'); // create tab group var tabGroup = Titanium.UI.createTabGroup(); // // create base UI tab and root window // var win1 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff' }); var tab1 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'Tab 1', window:win1 }); var label1 = Titanium.UI.createLabel({ ! color:'#999', ! text:'I am Window 1', ! font:{fontSize:20,fontFamily:'Helvetica Neue'}, ! textAlign:'center', ! width:'auto' }); win1.add(label1); 11 11 28
  • 21. // this sets the background color of the master UIView (when there are no windows/tab groups on it) Titanium.UI.setBackgroundColor('#000'); // create tab group var tabGroup = Titanium.UI.createTabGroup(); // // create base UI tab and root window // var win1 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff' }); var tab1 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'Tab 1', window:win1 }); var webView = Titanium.UI.createWebView({ ! url:'http://www.google.co.jp' }); win1.add(webView); 11 11 28
  • 22. ✤ ✤ ✤ ✤ 11 11 28
  • 23. var win1 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff' }); var tab1 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'Tab 1', window:win1 }); var webView = Titanium.UI.createWebView({ }); webView.html = '<html>' + '<head>' + '<title> HTML </title>' + '</head>' + '<body>' + '<h1> HTML </h1>' + '<p> </p>' + '</body>' + '</html>'; win1.add(webView); 11 11 28
  • 24. Titanium.UI.setBackgroundColor('#FFF'); urlBox.addEventListener('blur',function(e){ var tabGroup = Titanium.UI.createTabGroup(); actInd.show(); var win1 = Titanium.UI.createWindow({ webView.url = e.value; title:' ', webView.reload(); backgroundColor:'#fff' }); }); win1.add(urlBox); var tab1 = Titanium.UI.createTab({ icon:'KS_nav_views.png', // title:'Tab 1', var stopBtn = Ti.UI.createButton({ window:win1 title:'stop', }); top:10, // URL left:220, var urlBox = Titanium.UI.createTextField({ width:60, color:'#336699', height:30, top:10, systemButton:Titanium.UI.iPhone.SystemButton.STOP left:10, }); width:200, stopBtn.addEventListener('click',function(e){ height:30, webView.stopLoading(); hintText:'enter url', actInd.hide(); keyboardType:Titanium.UI.KEYBOARD_URL, }); returnKeyType:Titanium.UI.RETURNKEY_DEFAULT, win1.add(stopBtn); autocapitalization: false, borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED }); 11 11 28
  • 25. // HTML WebView // var webView = Titanium.UI.createWebView({ ActivityIndicator top:50, var actInd = Titanium.UI.createActivityIndicator({ left:0, top:50, width:'auto', height:55, height:'auto' width:'auto', }); opacity:0.5, webView.addEventListener('beforeload',function(e){ color:'#FFFFFF', actInd.show(); backgroundColor:'#000', }); borderRadius:5, webView.addEventListener('load',function(e){ borderColor:'#000', actInd.hide(); font:{fontFamily:'Helvetica Neue', fontSize:13}, }); message:' Loading...', win1.add(webView); style:Titanium.UI.iPhone.ActivityIndicatorStyle.PLA IN }); win1.add(actInd); tabGroup.addTab(tab1); tabGroup.open(); 11 11 28
  • 26. ✤ ✤ ✤ 11 11 28
  • 27. ✤ ✤ ✤ ✤ ✤ 11 11 28