Android slices
Components can display small, customizable search content called slices as part of search results.

Usage
Slices display rich content and actions on components, appearing as part of search results in the Google search app. They can display a variety of content types, such as text, images, and actions.
Principles

Focused
Slices focus on one task, or a set of related tasks, and highlight the most important information.

Related
Slices reflect content or features from your app.

Relevant
Slices provide only the information and controls needed to complete a task.
Navigation
Slices provide navigation to a specific feature, or content, in an app.

Task completion
Slices allow users to complete tasks inline, such as by displaying controls like toggles or sliders.

Content discovery
Slices remind users of past interactions with an app’s content and features.

When to use
Android’s Presenter determines the appropriate type of slice to display based on context. In search, the type of slice is influenced by how relevant a slice is to the search results.
Anatomy
Slices contain a header and one or more rows of interactive content. Various elements are grouped together to create a slice, such as a list, grid, or images.

2. Header subtitle - Supplementary text
3. Header actions - Actions
4. Image (Optional) - An image related to a row’s content
5. Row title - A row description
6. Row subtitle - Supplementary row text
7. Row action - Actions that apply to a single row
Content

Do

Don’t

Don’t
Actions
Slices display a limited set of actions related to a specific task.

Do

Don’t
Component types
Slices can be displayed in different sizes, depending on their usage and presentation.
Large slice
Large slices consist of a header and one or more rows of content (with corresponding actions).

Small slice
Small slices are equal in size to the header of a large slice. The header area (used for subtitles on large slices) can be replaced with a summary.

Behavior
Scrolling
Slices can contain overflow content, accessible from the “See more” button.

Sensitive actions
For sensitive or personal tasks, inline actions can be performed in the slice UI but should not be confirmed there. Instead, they should provide a link that takes the user into the app for confirmation.
Placement
Slices appear as part of search results in Android. The placement of a slice is determined by the search ranking algorithm.

Search suggestions
A search query can include a slice in search suggestions.

Theming
Slices display the default system UI style.
Accent color
Slices can use an accent color to highlight important information or reinforce product branding.


Don’t
Specs
Header

Row

Grid

Image

Slider

Progress Bar
