Slide 1

Slide 1 text

Multi-Window্Ͱͷ ʮڞ༗ʯʹ͍ͭͯ @yamacraft

Slide 2

Slide 2 text

profile • @yamacraft (Wataru Yamada) • LeadingMark, inc / team Y.G.E. • Mobile Application Engineer

Slide 3

Slide 3 text

https://www.recme.jp/ Web: python App(iOS): Swift2.2 RecmeʢϨΫϛʔʣ

Slide 4

Slide 4 text

Έͳ͞Μʹ͓ئ͍͕͋Γ·͢

Slide 5

Slide 5 text

AA͸ਪ঑؀ڥʢ˞ʣͰ ද͍ࣔͯͩ͘͠͞ʂʂ ʢ˞ʣMS PΰγοΫ16pxʴߦؒ2px ɹɹɹ΋͘͠͸Textar Font࢖͏ͱ͔

Slide 6

Slide 6 text

AA࠷ద؀ڥදࣔΞϓϦΛ Multi-WindowରԠͤ͞Α͏ͨ࣌͠ͷ࿩ ""ͼΎʔΘɿIUUQTQMBZHPPHMFDPNTUPSFBQQTEFUBJMT JEKQZBNBHMPBBWJFXFS

Slide 7

Slide 7 text

΍Γ͔ͨͬͨ͜ͱ • ̙ˍ̙ػೳͰը໘Λߋ৽͔ͤͨͬͨ͞ • υϥοάଆ͕υϥοάػೳΛ࣮૷ͯ͠ͳ͍ͱ࣮૷ෆ ՄೳͳͷͰϘπ…

Slide 8

Slide 8 text

ଥڠʢௐࠪʣҊ • Ұํʹϒϥ΢βɺҰํʹϏϡʔϫ • ϒϥ΢βͰڞ༗ʼϏϡʔϫબ୒ • Ϗϡʔϫଆͷ಺༰͕ߋ৽͞ΕΔʢ͸ͣʣ • android:resizeableActivity=true ͯ͠Δ͜ͱ Λલఏʹ࿩͠·͢

Slide 9

Slide 9 text

΍ͬͯΈͨ

Slide 10

Slide 10 text

·͋͜͏ͳΔ

Slide 11

Slide 11 text

launchModeΛ singleTaskʹͨ͠ΒͲ͏ͳΔ͔

Slide 12

Slide 12 text

ࢼ͢

Slide 13

Slide 13 text

ߋ৽͞Εͨʂ

Slide 14

Slide 14 text

͜͜·Ͱͷ·ͱΊ • Multi-WindowͰڞ༗ΛݺΜͩ৔߹ɺʮݺΜͰ͍Δ WindowଆʯͰActivity͕৽نʹ্ཱ͕ͪΔ • ݺ͹ΕΔଆ͕singleTaskʴยํͰ͢Ͱʹ։͍͍ͯΔ৔ ߹͸ɺonNewIntent()͕ݺ͹ΕΔ • ݺ͹Ε͍ͯͳ͍ͱɺݺΜͰ͍ΔWindowଆͰ Activity͕৽نʹ্ཱ͕ͪΔ

Slide 15

Slide 15 text

ݺͿଆ͕ϑϥά෇͖ͰݺΜͩ৔ ߹͸Ͳ͏ͳΔͷʁ • ͪͳΈʹ͜͜ͷϑϥάɺʢݪจ΋ʣޡࣈͬͯΔ • FLAG_ACTIVITY_LAUNCH_ADJACENT

Slide 16

Slide 16 text

݁࿦ɿݺ͹ΕΔଆ͕singleTaskͳ ΒɺยํͷWindowͰىಈ͢Δ • launchMode͕σϑΥϧτͩͱ௨ৗͱಉ͡ʢݺ ΜͰ͍ΔଆͷWindowͰΞϓϦ্ཱ͕͕ͪΔʣ • singleTaskͳΒยํͷWindowͰΞϓϦཱ͕ͪ ্͕ͬͯ͘ΕΔ • ͢Ͱʹ։͍͍ͯΕ͹ɺઌ΄ͲͷΑ͏ʹ onNewIntent()͕ݺ͹ΕΔ

Slide 17

Slide 17 text

·ͱΊ • Ϛϧν΢Οϯυ΢ͷػೳΛϑϧ׆༻͢Δʹ͸ɺ ݺͼग़͢ଆͷ࣮૷΋ඞཁෆՄܽͬΆ͍