Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
1ヶ月でAndroidカメラアプリ開発(2/4)
Search
sakebook
April 04, 2016
Programming
1.2k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
1ヶ月でAndroidカメラアプリ開発(2/4)
Adobe Creative SDKを使った写真加工アプリの開発のスライドです。全4回。
sakebook
April 04, 2016
More Decks by sakebook
See All by sakebook
属人化を防ぎ、スプリントゴールを達成するために開発者が始めた取り組み
sakebook
0
180
私とスクラム私とコミュニティ私とOST
sakebook
0
110
目指せKotlin 100%
sakebook
1
2.6k
Make full use of Chrome Custom Tabs
sakebook
3
3.5k
Chrome Custom Tabsを使いこなそう
sakebook
1
2.5k
1ヶ月でAndroidカメラアプリ開発(1/4)
sakebook
1
1.9k
1ヶ月でAndroidカメラアプリ開発(3/4)
sakebook
0
1.1k
1ヶ月でAndroidカメラアプリ開発(4/4)
sakebook
0
1k
Other Decks in Programming
See All in Programming
仕様駆動開発による爆速プロダクト開発 / Bakusoku Spec Driven Development
kobakei
0
140
AI活用は、個人から組織へ|マルチプレイヤーエージェントハーネス「QM」の社内活用事例 / AI use is moving from individuals to orgs
rkaga
1
270
Snowflakeで業務アプリを作ろう。 Snowflakeのアプリ機能解説&実践ガイド
ayumu_yamaguchi
2
310
AI Agent時代のリアーキテクチャ戦略と実践
hokaccha
9
5.1k
個人開発基盤をまるごとCloudflareに引っ越して爆速で総合的体験を向上させた話
tinykitten
0
210
モジュールの視点からSwiftを読み解く #iosdc
s_shimotori
0
200
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
320
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
180
Turning Architecture into Unit Tests in the AI Era (NSSpain XIV)
steliosf
PRO
1
110
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
4.2k
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
540
AWS DevOps Agentで インシデント対応をAIに任せたい
honmarkhunt
7
3.3k
Featured
See All Featured
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
700
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
520
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.7k
Skip the Path - Find Your Career Trail
mkilby
1
240
Rebuilding a faster, lazier Slack
samanthasiow
85
9.7k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
340
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
350
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
270
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Google's AI Overviews - The New Search
badams
0
1.6k
Transcript
̍ϲ݄Ͱ ANDROIDΧϝϥΞϓϦ։ൃ @Trunk ञຊ৳ 2016/3/20
ຊͷྲྀΕ • ϨΠΞτͷجຊࣝ • ActivityͷϥΠϑαΠΫϧ • ΠϕϯτϋϯυϦϯά • Widgetͷঢ়ଶཧ •
(Χϝϥݺͼग़͠) • (ը૾ड͚औΓ) • Aviaryઃఆ
ACTIVITY
ACTIVITY ≒ ը໘ • ActivityUIΛ࣋ͭը໘ʹඞਢ • ը໘xmlͰ࡞Δ • ಈతʹੜ͍ͨ͠ͷίʔυͰఆٛ •
ը໘Λߏ͢Δxml ϨΠΞτͱΟδΣοτͰΓཱͭ
LAYOUT
LAYOUT • WidgetViewΛҰఆͷنଇʹج͖ͮஔ͢Δ ͨΊͷͷ • ҰͭͷxmlʹϨΠΞτෳ͋ͬͯྑ͍ • ͷϨΠΞτඞͣҰͭ
͍͔ͭ͘հ • LinearLayout • ্͔ΒԼɺࠨ͔ΒӈͳͲɺॱংʹ٧Ίͯஔ͢ΔϨΠΞτ • RelativeLayout • ஔͨ͠ଞͷίϯϙʔωϯτͱͷҐஔؔΛఆٛ͠ͳ͕Β ஔ͢ΔϨΠΞτ
• FrameLayout • ࠨ্Λىͱͯ͠ɺࢠཁૉͰ͋Δͱ͖ લ໘ʹදࣔ͞ΕΔϨΠΞτ
XMLͷઃఆ • setContentView(Int id)
• εςʔλεόʔ • ΞΫγϣϯόʔ (πʔϧόʔ) • φϏήʔγϣϯόʔ ϨΠΞτ෦
None
None
WIDGET
WIDGET
ߴසग़ • Button • ϘλϯΛஔ͍ͨ͠ͱ͖ʹ͏ • TextView • ܾΊΒΕͨจࣈΛஔ͍ͨ͠ͱ͖ʹ͏ •
ImageView • ը૾Λද͍ࣔͨ͠ͱ͖ʹ͏
࣮श • ͕ࣗ࡞Γ͍ͨΞϓϦͷϨΠΞτΛߟ͑ ࣮ͯ͠ΈΔ
ϥΠϑαΠΫϧ
ϥΠϑαΠΫϧ • Activityಉ࢜ͷԁͳΓऔΓΛॿ͢Δ • ෳͷActivity • ϥΠϑαΠΫϧ ≒ ঢ়ଶભҠ
None
• onCreate • Activity͕ॳΊͯ ࡞ΒΕͨͱ͖ • onStart • Activity͕Ϣʔβʹ ݟ͑ΔΑ͏ʹͳΔલ
• onResume • Activity͕ දࣔ͞Εͨͱ͖ • onPause • ผͷActivity͕ දࣔ͞ΕΔͱ͖
• onStop • Activity͕ ݟ͑ͳ͘ͳͬͨ࣌ • onRestart • Activity͕ఀࢭͨ͠ޙ ࠶։࢝͞ΕΔલ
• onDestroy • Activity͕ ഁغ͞ΕΔલ • Activity͕ड͚औΔ ࠷ޙͷݺͼग़͠
ৄࡉ • http://dev.classmethod.jp/smartphone/android/ android-tips-21-activity-lifecycle/
ΠϕϯτϋϯυϦϯά
ΠϕϯτϋϯυϦϯά • Πϕϯτ • ϢʔβͷԿ͔͠Βͷߦಈ ෦ͷॲཧͷಛఆͷλΠϛϯά • ΠϕϯτΛదͳλΠϛϯάͰΩϟον͠ దͳॲཧΛߦ͏ɻ
ϘλϯΛΫϦοΫ • ButtonͷWidgetΛઃஔ • Button͕ΫϦοΫ͞Εͨ࣌ʹߦ͏ॲཧΛهड़ • ButtonͷΫϦοΫΠϕϯτΛϋϯυϦϯά
BUTTONͷWIDGETΛઃஔ • xml
BUTTON͕ΫϦοΫ͞Εͨ࣌ ʹߦ͏ॲཧΛهड़ • setOnClickListenerʹ࣮Λͯ͋͛͠Δ • Listener = Interface
࣮ ϋϯυϦϯά
ϋϯυϦϯά + ࣮
࣮? ϋϯυϦϯά
ผΫϥεͰ࣮ • MyCustomClick.class
࣮? ϋϯυϦϯά
ಉ͡ΫϥεͰ࣮ • ࣮͕هड़͞Ε͍ͯΔͷͰthis͕͑Δɻ
࣮͠·͢એݴ
SET_ON_CLICKҎ֎ͷϦεφʔ • setOn̋̋Ͱ༻ҙ͞Ε͍ͯΔɻ • ొ/ղআ͕ඞཁͳͷ add/remove register/unregister ͳͲɺ໋໊نଇͰผͰ͖Δ
࣮श • ͕ࣗ࡞Γ͍ͨΞϓϦͷ͍͔ͭ͘ͷwidgetͰ ΠϕϯτϋϯυϦϯάΛઃఆ͢Δ
WIDGETͷঢ়ଶ
BUTTON͕ΫϦοΫ͞Εͨ࣌ • ͳΜͲΫϦοΫͰ͖Δ • ΫϦοΫͰ͖͔ͨͲ͏͔Θ͔Βͳ͍ • ΫϦοΫՄೳͳঢ়ଶ͔ෆ໌
ͳΜͲΫϦοΫͰ͖Δ • ϝʔϧΛૹΔͳͲɺෳճ͞ΕͯࠔΔͷ ͕͋Δ • View#setEnabled(boolean) • Viewͷঢ়ଶΛɺ༗ޮ/ແޮʹ͢Δ
ΫϦοΫͰ͖͔ͨͲ͏͔ Θ͔Βͳ͍ ΫϦοΫՄೳͳঢ়ଶ͔ෆ໌ • ϢʔβʹϑΟʔυόοΫΛ༩͑Δ
ແޮͳঢ়ଶ ༗ޮͰ ԡ͞Ε͍ͯΔঢ়ଶ ༗ޮͰ ԡ͞Εͯͳ͍ঢ়ଶ
AVIARY
AVIARY • ΤσΟλʔػೳผSDK • https://creativesdk.adobe.com/docs/android/ #/articles/imageediting/index.html • Ұॹʹ͍͖ͬͯ·͠ΐ͏ɻ