- 对话框是一个提示窗口,帮助用户做出选择
- 它分为普通和全屏两种
- 每个对话框只做一件事情
- 对话框会显示需要用户了解的信息
- 主要用来提醒用户注意重要操作,比如删除文件前的确认提示
Basic dialogs 基本对话框
[1 Container 2 Icon (optional) 3Headline 4 Supporting text 5 Divider (optional) 6 Buttons (label text
Scrim ](https://app.notion.com/p/1ff886bc60ff811d87a1f82266241adb)
Attribute 属性 | Value 值
Container shape 容器形状 | 28dp corner radius
Container height 容器高度 | dynamic
Container width 容器宽度 | Min 280dp; Max 560dp
Divider height 分隔线高度 | 1dp
Icon size 图标大小 | 24dp
Minimum width 最小宽度 | 280dp
Maximum width 最大宽度 | 560dp
Alignment with icon 带图标的对齐 | Center-aligned 居中对齐
Alignment without icon 不带图标的对齐 | Start-aligned 起始对齐
Top/Left/right/bottom padding上/左/右/下边距 | 24dp
Padding between buttons 按钮之间的间距 | 8dp
Padding between title and body标题与正文之间的间距 | 16dp
Padding between icon and title图标与标题之间的间距 | 16dp
Padding between body and actions正文与操作之间的间距 | 24dp
Full-screen dialogs 全屏对话框
1 Container 2 Header *3 Icon (close affordance 4 Headline 5 Text button 6 *Divider(optional)
Attribute 属性 | Value 值
Container shape 容器形状 | 0dp corner radius 圆角
Container height 容器高度 | dynamic 动态的
Container width 容器宽度 | container width; Max 560dp
Header height 头部高度 | 56dp
Header width 头部宽度 | container width
Headline text alignment 标题文本对齐方式 | Start-aligned 起始对齐
Divider height 分隔线高度 | 1dp
Icon (close affordance) size图标(关闭提示)大小 | 24dp
Bottom action bar height底部操作栏高度 | 56dp
Bottom action bar width底部操作栏宽度 | container width
Top/left/right padding 上/左/右内边距 | 24dp
Padding between elements元素之间的间距 | 8dp