Upgrade to Pro — share decks privately, control downloads, hide ads and more …

じゃじゃ馬UIフレームワークXamarin.Formsを活用した アプリ開発のノウハウ

じゃじゃ馬UIフレームワークXamarin.Formsを活用した アプリ開発のノウハウ

meetup app tokyo@1 2016/06/24

yo ohtagawa

June 24, 2016
Tweet

More Decks by yo ohtagawa

Other Decks in Programming

Transcript

  1. ࣗݾ঺հ • ଠా઒ ༸ ʢ͓͓͕ͨΘ Α͏ʣ • Twitter : @AyaseSH

    • Ϗδωε
 iOS΍AndroidͷωΠςΟϒΞϓϦ։ൃ(Xamarin,obj-c)
 TypeScriptॻ͍ͨΓɹ.Net MVCͰC#ॻ͍ͨΓɻɻɻ • ϗϏʔ
 in JXUG (Japan Xamarin User Group)
 “#jxug” ΍ ”Xamarin” Ͱͷ೔ຊޠΤΰα͍ͯ͠·͢
  2. Xamarinͱ͸ʁ • ։ൃݴޠΛC# ΦϯϦʔʹ • ։ൃ؀ڥΛVisual Studioʹ • Xamarin͸ɺ֤ϓϥοτϑΥʔϜͷAPIΛ
 શͯϥοϓͯ͋͠Γ·͢ʂ

    • iOSͳΒswift΍objective-CͰॻ͔Ε͍ͯΔίʔυΛ • AndroidͳΒjavaͰॻ͔Ε͍ͯΔίʔυΛ • C#(Mono)Λ࢖ͬͯಉ͡ϑϧίʔσΟϯά͕Մೳʂ
  3. Xamarinͱ͸ʁ • XamarinͷΠϝʔδਤ Xamarin.iOS (Watch Kit, tvOS) Xamarin.Android (Wear) Xamarin.Mac

    Shared C# App Logic (BCL, PCL) Xamarin Studio
 (IDE)
 Xamarin.Forms Test Cloud
 (UITest) Insight
 (Hockey App)

  4. Xamarinͷඞཁ஌ࣝ ϓϥοτ ϑΥʔϜผ Xamarin Native iOSɹAPI Objective-C, Swift Xcode AndroidɹAPI

    Java Android Studio WindowsɹAPI Visual Studio (*1) C# API ݴޠ ౷߹։ൃ؀ڥ iOSɹAPI Objective-C, Swift Xcode AndroidɹAPI Java Android Studio WindowsɹAPI Visual Studio (*1) C# Xamarin.Forms iOSɹAPI AndroidɹAPI WindowsɹAPI Objective-C, Swift Xcode Java Android Studio Visual Studio (*1) C# Xamarin.Forms UI toolkit (*1) Macͷ৔߹͸Xamarin Studio
  5. Xamarin.Formsͱ͸ • Xamarin.Forms = ந৅ԽϨΠϠʔ • Xamarin.iOS Xamarin.Androidͱ͸ҧ͍ɺXamarin.Forms ͸ϥοϓ͍ͯ͠ΔͷͰ͸ͳ͘ந৅Խ •

    ந৅Խͱ͍͏͜ͱ͸APIͷ਺͸ɻɻɻ࠷௿ݶͷ΋ͷ͚ͩ • ྫ͑͹ɹςΩετͷUI
 Xamarin.Forms.Label =>
 UILabel(iOS), TextView(Android), TextBlock(WinPhone)
  6. DataBinding • Xamarin.Forms ʹ͸ DataBinding ͕͋Δ • DataBindingʢσʔλͷදࣔ౳Λ؆ૉԽʣ • ιʔεΦϒδΣΫτʢσʔλ,

    ViewModelʣ • λʔήοτΦϒδΣΫτʢදࣔ, Viewʣ ࢀߟɿ΋ͬͱ͍͍σϞ͕ build2016Ͱ͋Γ·͢
 https://channel9.msdn.com/Events/de-code/2016/DEV-023
  7. ·ͱΊ • Xamarin ͸֤ϓϥοτϑΥʔϜͷAPI͕ݺ΂Δ • Xamarin.Forms ͸ந৅Խ͞ΕͨUIͷϑϨʔϜϫʔΫ
 ݸผ࣮૷ʹ͸ RendererͱOnPlatform͕͓͢͢Ί •

    Xamarin.Forms ͸DataBinding͕Ͱ͖Δ • SakenomyΛΑΖ͓͘͠ئ͍͠·͢ ࠔͬͨ͜ͱ͕͋Ε͹ Facebook ͔ #jxug λά෇͖πΠʔτͰʂ ΋͘͠͸Mentions Ͱ@AyaseSH ෇͖Ͱw