• 使用搜索栏和视图通过搜索查询来浏览产品
  • 当用户输入时,搜索栏可以显示推荐的关键词或短语
  • 始终在搜索视图中显示结果
  • 搜索栏可以包含一个前置的搜索图标和一个可选的后置图标

1 search bar 2 search view

1 Container2. Leading icon button 3. Supporting text4. Avatar or trailing icon (optional)

Element  元素 | Attribute  属性 | Value  值

Container  容器 | Width  宽度 | Min: 360dp; Max: 720dp

| Height  高度 | 56dp

| Label alignment  标签对齐 | Start-aligned  起始对齐

| Left padding  左内边距 | 16dp

| Right padding  右内边距 | 16dp

| Leading icon and label padding引导图标和标签内边距 | 16dp

| Label and trailing icon padding标签和尾部图标内边距 | 16dp

Avatar  头像 | Size  尺寸 | 30dp

Search bar configurations搜索栏配置

1 With avatar 带头像 2 With one trailing icon button带有一个尾部图标按钮 3 With two trailing icon buttons带有两个尾部图标按钮 4 With avatar and trailing icon button 带有头像和尾随图标按钮

1. Container2. Header3. Leading icon button4. Supporting text5. Trailing icon button6. Input text7. Divider

Element  元素 | Attribute  属性 | Value  值

Container (full screen)  容器(全屏) | Width  宽度 | Full width  全宽

| Height  高度 | Full height  全高

Container (docked)  容器(停靠) | Width  宽度 | Min: 360dp; Max: 720dp

| Height  高度 | Min: 240dp; Max: 2/3 of screen height

Header  标题 | Height (full screen)  高度(全屏) | 72dp

| Height (docked)  高度(停靠) | 56dp

| Label alignment  标签对齐 | Left-aligned  左对齐

| Left padding  左内边距 | 16dp

| Right padding  右内边距 | 16dp

| Leading icon and label padding引导图标和标签内边距 | 16dp

| Label and trailing icon padding标签和尾部图标内边距 | 16dp

Search view configurations搜索视图配置

1 Search view - full screen搜索视图- 全屏 2 Search view- docked搜索视图- 停靠