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
TechMeeting_8_17_Android_Kase
Search
YutaKase6
August 13, 2015
61
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
TechMeeting_8_17_Android_Kase
YutaKase6
August 13, 2015
Featured
See All Featured
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
410
Designing Experiences People Love
moore
143
24k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
GraphQLとの向き合い方2022年版
quramy
50
15k
Designing for Performance
lara
612
70k
Exploring anti-patterns in Rails
aemeredith
4
540
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
460
Building AI with AI
inesmontani
PRO
1
1.3k
Marketing to machines
jonoalderson
1
5.9k
Docker and Python
trallard
47
4.2k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
Into the Great Unknown - MozCon
thekraken
41
2.8k
Transcript
/8 Android オーバーレイの開発 Android Team 加瀬 祐太 2015/8/17 Tech Meeting
1
/8 概要 チュートリアルで使用するオーバーレイ 2015/8/17 Tech Meeting 2 注目させたい領域以外 を暗転する機能
/8 TourGuide オーバーレイを始め、ポインタ等を特定の Viewに付与することができるライブラリ こちらを参考にiQONで使いやすいような、 オーバーレイに特化させた軽量版を実装 2015/8/17 Tech Meeting 3
/8 オーバーレイの実装 • PorterDuff • 二枚の画像を重ねる際にそれぞれのピクセル にどのように処理をするのかを規定したもの Src(上)のピクセルをDst(下)ごと透過する Clearを用いて実装 2015/8/17
Tech Meeting 4
/8 オーバーレイの実装 • まず半透明でスクリーン全体を塗る • オーバーレイをかけたい領域に対して短形を描画 • モードをClearに設定することでくり抜きたい部分に対し て上から描画するだけで穴が空く •
1つのシーンに対して複数のオーバーレイに対応 • TourGuideでは1つのみ 2015/8/17 Tech Meeting 5
/8 ポップアップ チュートリアルで使用する際は必ずポップアップ が表示される ポップアップも付与可能に修正 2015/8/17 Tech Meeting 6
/8 はまったところ • onCreate()ではViewの大きさは取得できないあるある • Viewの大きさが取得できるタイミングで呼び出さなければならない • ライブラリ側で吸収すべきか • スクロールで発火させるとオーバーレイがずれる
• 発火後、自動でスクロール位置を強制的に微修正することで解決(にっしーさんが) • アニメーション後のViewの大きさが取得できない • これまで利用していたAnimator (ObjectAnimator)がそういう仕様 • 別のAnimator(ValueAnimator)に置換 2015/8/17 Tech Meeting 7
/8 最後に • 憂さを晴らすかのようにTouGuideに タイポ指摘等のPRを連打 ご静聴ありがとうございました 2015/8/17 Tech Meeting 8