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
Shibuya.apk#46 余白の作り方
Search
みやゆ星
January 19, 2024
Programming
420
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Shibuya.apk#46 余白の作り方
みやゆ星
January 19, 2024
More Decks by みやゆ星
See All by みやゆ星
一時的なスライド
yuchan2215
0
34
AI Agentを利用したAndroid開発について
yuchan2215
0
870
Other Decks in Programming
See All in Programming
Materialが消えた日 〜真っ白なFlutterキャンバスにRenderObjectで絵を描く〜
umigishiaoi
0
150
Snowflake Openflow Connector利用の勘所 / 20261024developersio2026tokyo-snowflake-openflow
kasacchiful
PRO
0
310
Secure Your Coding Agent Like It’s Malware (v1.5) 🇬🇧 @Code.talks 2026
richargh
0
110
Web3Dライブラリを作ってVue Custom Rendererの仕組みを理解しよう / lets learn vue custom renderer by making 3d library
drumath2237
1
130
Seven New Principles of Software Engineering
yegor256
0
470
Rails初心者がパスキーを実装してみて大変だったこと
ktombow
0
160
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
3
1.5k
クラウドゲーミングのパフォーマンス最適化に挑む / Cloud Gaming Performance Tuning
vivion
0
330
Spec-Driven Development - Why Vaadin Is the Perfect Fit
simas
PRO
0
240
作って学ぶSpring BootのAuto Configuration / JJUG Night Seminar 2026-10-19
rshindo
0
220
React Native経験者が Flutterを30⽇間触って驚いたこと
3saito
0
160
そのデザイントークン、Flutterでも同じ見た目になりますか?
nakamizu
0
320
Featured
See All Featured
Odyssey Design
rkendrick25
PRO
2
930
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.2k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
Automating Front-end Workflow
addyosmani
1370
210k
The agentic SEO stack - context over prompts
schlessera
0
1k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
How GitHub (no longer) Works
holman
316
150k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
240
Facilitating Awesome Meetings
lara
57
7.2k
Transcript
Shibuya.apk#46 みやゆ星 余白の 作り方
Modifier Padding Layout WindowInsetsPadding Arrangement.spacedBy Spacer Constraint Layout 余白の つくりかた
一番ベーシックなモディファイア (主観) 周りに空間をあける NowInAndroid: 58回出現 Padding
そのまんま。スペーサー。 NowInAndroid: 17回出現 Spacer
Android Viewでは多用 要素と要素の間の依存関係を 細かく設定できる 美しいコードが書けない印象 なので、あまり使われていない? NowInAndroid: 0回出現 Constraint Layout
カスタムレイアウトの作成 (位置・サイズを細かく指定できる) NowInAndroid: 1回出現 Layout
Now In Android 使用例(おまけ)
ColumnやRowで要素間の間隔をあける。 NowInAndroid: 16回出現 Arrangement. spacedBy
WindowInsets システムバーなどのウィンドウインセットに応じてパディングを適用するもの 引用:https://developer.android.com/jetpack/compose/layouts/insets?hl=ja →なのでちょっと特殊
WindowInsets 項目 説明 statusBars(IgnoringVisibility) ステータスバーのインセット(通知アイコンなどを含む上部のシステムUIバー) navigationBars(IgnoringVisibility) ナビゲーションバーのインセット(デバイスの左右下部のシステムUIバー) captionBar(IgnoringVisibility) キャプションバー(フリーフォームウィンドウのトップタイトルバーなど)のインセット systemBars(IgnoringVisibility)
全てのシステムバー(ステータスバー、ナビゲーションバー、キャプションバー)の合計インセット ime ソフトウェアキーボードが占有する下部スペースのインセット imeAnimationSource キーボードアニメーション前のソフトウェアキーボードの占有スペースのインセット imeAnimationTarget キーボードアニメーション後のソフトウェアキーボードの占有スペースのインセット tappableElement(IgnoringVisibility) タップ可能なナビゲーションUI要素のインセット systemGestures システムジェスチャーのインターセプト範囲のインセット mandatorySystemGestures 常にシステムが処理する必須のシステムジェスチャーのインセット displayCutout ディスプレイのカットアウト(ノッチやピンホール)を避けるためのインセット waterfall ウォーターフォールディスプレイの曲線領域を表すインセット https://developer.android.com/jetpack/compose/layouts/insets?hl=ja
消費できる Modifier#windowInsetsPadding 消費できた分の間隔をあける Modifier#consumeWindowInsets 消費のみ
🤔
None
要素 使用シナリオ Modifier #padding ボタンやテキストなどのコンポーネントに余白を設定する場合に使用 Spacer 水平または垂直なレイアウト内でコンポーネント間に 特定の空白を作成したい場合などに使用 Arrangement #spacedBy
同一方向上に並べられた複数のコンポーネント間に均等な間隔を設定する場合に使用 Modifier #windowInsets ステータスバーなどのシステムUIとの間に余白を設定する必要がある場合に使用 Constraint Layout 複数のコンポーネントを相対的に配置する必要がある場合や、 複雑なレイアウトを作成する場合に使用 Modifier#layout 標準的なレイアウトオプションで要件を満たせない場合に、 カスタムレイアウトを定義するために使用
Thank You ご清聴ありがとうございました!! @yuu1111main