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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
horie23
March 07, 2023
Programming
340
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Custom Tabsの高さを変更しよう
horie23
March 07, 2023
More Decks by horie23
See All by horie23
コーディングから1年離れた経験と コーディングへの再挑戦
horie23
0
130
Jetpack Compose 頑張らないPreviewParameterProvider
horie23
0
630
Other Decks in Programming
See All in Programming
AWS Step Functions 大規模並列の壁を越える / jaws-sonic-2026-niigata-step-functions
kasacchiful
PRO
0
390
自分的「カンファレンスの楽しみ方」
syumai
0
190
AWS DevOps Agentで インシデント対応をAIに任せたい
honmarkhunt
6
2.5k
「つくるAI」だけではバグは見つからない ~テストに必要な「見つけるAI」を分離させる戦略~
mfunaki
0
230
iOS開発×AI駆動開発 〜最近使って便利だったスキルの話〜
nogu66
0
140
RSSとCodexを使ってX投稿自動化してみた
ochtum
0
110
Oxlintはいいぞ(続)
yug1224
1
560
業務時間外もAIに働いてもらう話
colorful12
3
10k
「AI時代、配布するPythonコードをどう守るか: 難読化の実験と判断軸」 #PyconJP2026
pkshadeck
PRO
2
170
PyConJP2026_wat_Python × Signal Processing: How to Draw Pictures with Sound Using Spectrogram Art
wat
0
680
Press start. Python's next generation.
willingc
PRO
3
310
typoなんかねぇよ
raspython3
0
670
Featured
See All Featured
The SEO identity crisis: Don't let AI make you average
varn
0
550
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Designing Experiences People Love
moore
143
24k
Mobile First: as difficult as doing things right
swwweet
225
10k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Leo the Paperboy
mayatellez
8
2.2k
Raft: Consensus for Rubyists
vanstee
141
7.7k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Technical Leadership for Architectural Decision Making
baasie
3
560
The SEO Collaboration Effect
kristinabergwall1
1
550
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
400
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
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には他にも更新されたものがあるので、 是非試してみてください