Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Custom Tabsの高さを変更しよう
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
horie23
March 07, 2023
Programming
0
320
Custom Tabsの高さを変更しよう
horie23
March 07, 2023
Tweet
Share
More Decks by horie23
See All by horie23
コーディングから1年離れた経験と コーディングへの再挑戦
horie23
0
100
Jetpack Compose 頑張らないPreviewParameterProvider
horie23
0
590
Other Decks in Programming
See All in Programming
IFSによる形状設計/デモシーンの魅力 @ 慶應大学SFC
gam0022
1
290
AIによるイベントストーミング図からのコード生成 / AI-powered code generation from Event Storming diagrams
nrslib
2
1.8k
Patterns of Patterns
denyspoltorak
0
1.4k
CSC307 Lecture 03
javiergs
PRO
1
490
ZJIT: The Ruby 4 JIT Compiler / Ruby Release 30th Anniversary Party
k0kubun
1
390
コントリビューターによるDenoのすゝめ / Deno Recommendations by a Contributor
petamoriken
0
200
登壇資料を作る時に意識していること #登壇資料_findy
konifar
3
880
CSC307 Lecture 08
javiergs
PRO
0
660
2026年 エンジニアリング自己学習法
yumechi
0
130
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
590
AtCoder Conference 2025
shindannin
0
1k
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
160
Featured
See All Featured
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2k
Writing Fast Ruby
sferik
630
62k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
0
250
Evolving SEO for Evolving Search Engines
ryanjones
0
120
Typedesign – Prime Four
hannesfritz
42
2.9k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
110
How to Ace a Technical Interview
jacobian
281
24k
RailsConf 2023
tenderlove
30
1.3k
How GitHub (no longer) Works
holman
316
140k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
88
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.7k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
Transcript
We are the future. www.team-lab.com チームラボ株式会社 teamLab inc. Custom Tabsの高さを変更しよう
チームラボ 堀江
We are the future. www.team-lab.com チームラボ株式会社 teamLab inc. 自己紹介 堀江
達矢 チームラボ 2013年入社 スマホアプリエンジニア https://www.wantedly.com/id/tatsuya_horie_c
We are the future. www.team-lab.com チームラボ株式会社 teamLab inc. Custom Tabs紹介
Webページを開くときに - アプリから離脱させたくない - WebViewでは動かないかもしれない という悩みを解決するために、 ブラウザ側でAndroidアプリ向けに提供される機能 管理しているドメイン以外のWebページを開くときに利用が推奨されている refs:https://developer.chrome.com/docs/android/custom-tabs/
We are the future. www.team-lab.com チームラボ株式会社 teamLab inc. Custom Tabsの新しい機能
Custom Tabs起動時の高さを設定できる
We are the future. www.team-lab.com チームラボ株式会社 teamLab inc. 注意点 -
ブラウザによって対応状況が異なるため、 Chromeの場合は最新版を利用する - 端末横向きでは表示できない - マルチウィンドウモードでは表示できない
We are the future. www.team-lab.com チームラボ株式会社 teamLab inc. 起動時の高さの設定方法 2種類の方法
1. CustomTabsServiceConnectionを利用 2. ActivityResultLauncherを利用
We are the future. www.team-lab.com チームラボ株式会社 teamLab inc. CustomTabsServiceConnectionを利用 ※CustomTabsSessionは
利用シーンに合わせて作成
We are the future. www.team-lab.com チームラボ株式会社 teamLab inc. CustomTabsServiceConnectionを利用
We are the future. www.team-lab.com チームラボ株式会社 teamLab inc. 高さが変更されたイベント CustomTabsCallback
#onActivityResized でハンドリング
We are the future. www.team-lab.com チームラボ株式会社 teamLab inc. ActivityResultLauncherを利用
We are the future. www.team-lab.com チームラボ株式会社 teamLab inc. ActivityResultLauncherを利用
We are the future. www.team-lab.com チームラボ株式会社 teamLab inc. 項目の説明:Toolbarの角丸 角丸の設定は現状
0dp ~ 16dp の範囲のみ対応 それ以外を設定す るとクラッシュ refs:https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsIntent#EXTRA_TOOLBAR_CORNER_RADIUS_DP()
We are the future. www.team-lab.com チームラボ株式会社 teamLab inc. 項目の説明:起動時の高さ 起動時の高さは
画面の高さの 50% ~ 100% の範囲のみ対応 それ以外を設定し ても50%か100% 表示になる refs:https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsIntent#EXTRA_INITIAL_ACTIVITY_HEIGHT_PX()
We are the future. www.team-lab.com チームラボ株式会社 teamLab inc. 項目の説明:起動時の高さ追加設定 refs:https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsIntent.Builder#setInitialActivityHeightPx(int)
ActivityHeightRe sizeBehaviorを 指定可能 - DEFAULT - ADJUSTABLE - FIXED の3種
We are the future. www.team-lab.com チームラボ株式会社 teamLab inc. 項目の説明:閉じるボタンの位置 閉じるボタンの
表示位置 - DEFAULT - START - END の3種 refs:https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsIntent.Builder#setCloseButtonPosition(int)
We are the future. www.team-lab.com チームラボ株式会社 teamLab inc. 最後に androidx.Browserのバージョン
1.5には他にも更新されたものがあるので、 是非試してみてください