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
Custom Tabsの高さを変更しよう
Search
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
140
Jetpack Compose 頑張らないPreviewParameterProvider
horie23
0
640
Other Decks in Programming
See All in Programming
AmebaブログはKMPから卒業します
kmars0605
0
180
AIで開発が速くなった先で、開発チームは何を目指すか
shihochan
0
880
S3 TablesのIcebergデータに、AIエージェントからアクセスしてみた / 20261016developersio2026joetsu-accessing-iceberg-in-s3tables-via-agent
kasacchiful
PRO
0
150
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
220
sbt 2.0: takeoff
eed3si9n
0
160
パズルゲームの作り方 / how to make puzzle games
kaityo256
PRO
2
290
気持ちぃ〜角丸 Squircle
ryu1013
0
310
HTML-in-Canvasで作る未来のWeb UI表現
clockmaker
5
5.1k
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
170
Verilogで学ぶCPU自作入門
uyuki234
8
4.1k
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
2
880
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
5.2k
Featured
See All Featured
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
330
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
A better future with KSS
kneath
240
18k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
480
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Accessibility Awareness
sabderemane
1
250
Joys of Absence: A Defence of Solitary Play
codingconduct
1
550
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
930
Mobile First: as difficult as doing things right
swwweet
225
10k
Ruling the World: When Life Gets Gamed
codingconduct
0
400
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
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には他にも更新されたものがあるので、 是非試してみてください