titanium20140319

24
それでも TitaniumiPhone,Android クロスプラットフォームを諦めない 2014.03.19 日向強 @coffeegyunyu

Upload: tsuyoshi-hyuga

Post on 02-Aug-2015

287 views

Category:

Technology


0 download

TRANSCRIPT

1. TitaniumiPhone,Android 2014.03.19 @coeegyunyu 2. * CoeeScript CoeeScript * 100% Caution 3. iOS,Android) 4. Titanium FontStamp SNS 33,000 Titanium3.2.0 https://play.google.com/store/apps/details? id=jp.coe.fontstamp https://itunes.apple.com/jp/app/ fontosutanpu-wen-zisutanpuga/id687721425? mt=8 5. Titanium coe 3000 Titanium 3.2.0 https://itunes.apple.com/jp/app/coe- shengdetsunagaruapuri/id367895344?mt=8 https://play.google.com/store/apps/details? id=jp.coe.coe 6. Titanium 7. Titanium Titanium iOS Android if(OS_IOS) If(OS_ANDROID) iOSAndroid OS 8. 9. * TitaniumSDK3.2.1 10. Titanium3.1.3Android Titanium3.2.1Android 11. * Titanium SDK 3.2.1Android UI(dp property>) * Titanium SDK 3.2.1Android (Theme.holo) 12. * Two-tabbed Alloy Application 13. * iOS,Android iOSNavigationWindow # $.index.addEventListener"open",(e)-> Alloy.Globals.currentTab=e.source.activeTabife?.source?.activeTab? $.index.addEventListener"focus",(e)-> Alloy.Globals.currentTab=e.tabife?.tab? clickMe=(e)-> nextwindow=Ti.UI.createWindow() Alloy.Globals.currentTab.opennextwindow# $.index.open() app/controller/index.coee 14. iPhone ( Android Back 15. Controller 16. * Android,iOS CoeeScript Controller 17. Controller # classHogeWindowInplBase constructor:-> hello:(e)-> alert"hello" thankyou:-> alert"Thankyou" #OS IMPL=ifOS_IOSthenclassHogeWindowInplIosextendsHogeWindowInplBase hello:(e)-> alert"helloiOS" elseifOS_ANDROIDthenclassHogeWindowInplAndroidextendsHogeWindowInplBase hello:(e)-> alert"helloAndroid" # impl=newIMPL() clickHello=(e)-> impl.hello()#OS clickThankyou=(e)-> impl.thankyou()#OS app/controllers/HogeWindow.coee 18. Controller iOS Android 19. UI 20. * OS * OSapp/ view/{OS}/{}.xml UI 21. UI views UIWindow.xmlOS index.xml ios UIWindow.xmliOS 22. UI iOS/UIWindow.xml UIWindow.xml hello thankyou hello thankyou iOSToolbar! 23. UI iOS Andoird 24. TitaniumAndroid,iOS Java,Ruby,etc [email protected]!