Skip to content
Material Design 1
Main Navigation
v3
v2
v1

English

简体中文
繁體中文
Español
Français
Русский
Português – Brasil
Deutsch
日本語
한국어
Italiano
Polski
Türkçe
čeština
magyar

English

简体中文
繁體中文
Español
Français
Русский
Português – Brasil
Deutsch
日本語
한국어
Italiano
Polski
Türkçe
čeština
magyar

Appearance

Sidebar Navigation

Material Design

Environment

Material properties

Elevation & shadows

What's new

Motion

Material motion

Duration & easing

Movement

Transforming material

Choreography

Creative customization

Style

Color

Icons

Imagery

Typography

Writing

Layout

Principles

Units & measurements

Metrics & keylines

Structure

Responsive UI

Split screen

Components

Bottom navigation

Bottom sheets

Buttons

Buttons: Floating Action Button

Cards

Chips

Data tables

Dialogs

Dividers

Expansion panels

Grid lists

Lists

Lists: Controls

Menus

Pickers

Progress & activity

Selection controls

Sliders

Snackbars & toasts

Steppers

Subheaders

Tabs

Text fields

Toolbars

Tooltips

Widgets

Patterns

Confirmation & acknowledgement

Data formats

Empty states

Errors

Fingerprint

Gestures

Help & feedback

Launch screens

Loading images

Navigation

Navigation drawer

Navigational transitions

Notifications

Offline states

Permissions

Scrolling techniques

Search

Selection

Settings

Swipe to refresh

Growth & communications

Introduction

Onboarding

Feature discovery

Gesture education

Usability

Accessibility

Bidirectionality

Platforms

Platform adaptation

Android

Resources

Color palettes

Devices

Layout templates

Roboto & Noto fonts

Sticker sheets & icons

Shadows

On this page

Search ​

Search allows users to locate app content quickly.

When an app supports large amounts of information, users should be able to quickly locate content by searching for it.

Search options

Voice search
Search suggestions
Autocompletion


Types of search

Persistent search
Expandable search

Material Design Search for quick app content access

In-app search ​

When an app supports large amounts of information, users should be able to quickly locate content by searching.

Basic search involves:

  • Opening a search text field
  • Entering and submitting a query
  • Displaying a set of search results

However, the search experience can be enhanced by providing:

  • Voice search
  • Historical search suggestions based on recent user queries, before a query is completed
  • Auto-completed search suggestions matching actual results in your application data

There are two major patterns for in-app search: persistent search and expandable search.

Persistent search

Use persistent search when search is the primary focus of your app.

Behavior:

The search text field is presented inside of an inset search box, ready to receive focus. The user can touch the microphone icon to initiate a voice search.

When in focus, the search field expands to show historical search suggestions. If needed, the onscreen keyboard will also appear.

Choosing any of the suggestions submits the search. Touching the up arrow releases the focus from search, dismissing suggestions and the on-screen keyboard.

Persistent search box in Material Design
Persistent search box
Material Design persistent search text field active
Persistent search text field in focus

As the user enters a query, the search suggestions shift to auto-completion. As the user types, the suggestions are filtered and sorted. Choosing a suggestion or pressing the return key submits the search.

The X action in the search box clears the query.

When displaying search results, the search box remains visible, but is not focused by default. The onscreen keyboard is dismissed so more results can be shown.

Search results are formatted as cards to match the inset appearance of the search box and to accommodate different types of results.

Material Design search Auto-complete feature
Auto-complete
Material Design search results display
Search results

Expandable search

Use expandable search when search is not the primary focus of your app.

Behavior:

Display a magnifying glass icon in the toolbar instead of a search text box.

Touching the search icon causes the toolbar to transform, clearing other content and displaying a search text field. If voice search is supported, the microphone icon also appears.

The search text field automatically receives focus, and, if needed, the onscreen keyboard will appear. Historical search suggestions can be shown beneath the toolbar. Choosing any of the suggestions submits the query.

Touching the up arrow closes search and restores the original presentation of the toolbar.

Material Design expandable search feature
Expandable search
Focused search text field in Material Design
Search text field in focus

As the user enters a query, the search suggestions shift to auto-completion. As the user types, the suggestions are filtered and sorted. Choosing a suggestion or pressing the return key submits the search.

The X action in the search field clears the query.

When displaying search results, the search version of the toolbar remains visible, but is not in focus by default. The onscreen keyboard is dismissed so more results can be shown.

Search results are formatted as cards and appear in the main body of the page beneath the toolbar.

Material Design search Auto-complete feature
Auto-complete
Material Design search results
Search results
Pager
Previous pageScrolling techniques
Next pageSelection

Released under the Apache-2.0

Copyright © 2014-Present Google

https://m1.material.io/patterns/search.html

Released under the Apache-2.0

Copyright © 2014-Present Google