Skip to content
Material Design 2
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 System

Introduction

Material studies

About our Material studies

Basil

Crane

Fortnightly

Owl

Rally

Reply

Shrine

Material Foundation

Environment

Surfaces

Elevation

Light and shadows

Layout

Understanding layout

Pixel density

Responsive layout grid

Spacing methods

Component behavior

Applying density

Navigation

Understanding navigation

Navigation transitions

Search

Color

The color system

Applying color to UI

Color usage

Text legibility

Dark theme

Typography

The type system

Understanding typography

Language support

Sound

About sound

Applying sound to UI

Sound attributes

Sound choreography

Iconography

Product icons

System icons

Animated icons

Shape

About shape

Shape and hierarchy

Shape as expression

Shape and motion

Applying shape to UI

Motion

Understanding motion

The motion system

Speed

Choreography

Customization

Interaction

Gestures

Selection

States

Communication

Confirmation & acknowledgement

Data formats

Data visualization

Empty states

Help & feedback

Imagery

Launch screen

Onboarding

Offline states

Writing

Machine learning

Machine learning patterns

Object detection: live camera

Object detection: static image

Barcode Scanning

Material Guidelines

Material Theming

Overview

Implementing your theme

Usability

Accessibility

Bidirectionality

Platform guidance

Android bars

Android fingerprint

Android haptics

Android icons

Android navigating between apps

Android notifications

Android permissions

Android slices

Android split-screen

Android swipe-to-refresh

Android text selection toolbar

Android widget

Cross-platform adaptation

Components

App bars: bottom

App bars: top

Backdrop

Banners

Bottom navigation

Buttons

Buttons: floating action button

Cards

Checkboxes

Chips

Data tables

Date pickers

Dialogs

Dividers

Image lists

Lists

Menus

Navigation drawer

Navigation rail

Progress indicators

Radio buttons

Sheets: bottom

Sheets: side

Sliders

Snackbars

Switches

Tabs

Text fields

Time pickers

Tooltips

On this page

App bars: top ​

The top app bar displays information and actions relating to the current screen.

App bars: top hero image

Usage ​

The top app bar provides content and actions related to the current screen. It’s used for branding, screen titles, navigation, and actions.

It can transform into a contextual action bar.


Understanding navigation

Enable users to move through an app.

Related link

Bottom app bars

Provide reachable access to a bottom navigation drawer and actions on mobile devices.

Related article

Bottom navigation

Allow movement between primary destinations in an app.

Related article

Principles ​


App bars: top principle: persistent

Persistent

Top app bars appear at the top of each screen in an app, and can disappear upon scroll.

App bars: top principle: guiding

Guiding

Top app bars provide a reliable way to guide users through an app.

App bars: top principle: consistent

Consistent

Top app bars have a consistent position and content to increase familiarity.

Types ​


A regular top app bar
Regular
A regular top app bar

Contextual action bars provide actions for selected items
Contextual action bar
Contextual action bars provide actions for selected items. A top app bar can transform into a contextual action bar, remaining active until an action is taken or it is dismissed.

Anatomy ​

The recommended placement of elements in a top app bar for left-to-right languages is:

  • Place navigation on the far left
  • Place any titles to the right of navigation
  • Place contextual actions to the right of navigation
  • Place an overflow menu (if used) to the far right

For right-to-left languages, placement positions should be flipped.

Diagram of container, navigation icon, title, action items, overflow menu
1. Container
2. Navigation icon (optional)
3. Title (optional)
4. Action items (optional)
5. Overflow menu (optional)

Mirroring elements

UIs for languages that are read from right-to-left (RTL), such as Arabic and Hebrew, should be mirrored to ensure content is easy to understand.

Related article

Bar ​

The bar holds the content of the top app bar. A variety of bar heights are available:

  • Regular
  • Prominent
  • Dense (desktop only)
  • Prominent dense (desktop only)

Prominent ​

Prominent top app bars can be used for longer titles, to house imagery, or to provide a stronger presence to the top app bar.

Diagram of regular top app bar on mobile, prominent top app bar on mobile
1. Regular top app bar on mobile
2. Prominent top app bar on mobile

Dense (desktop only) ​

The top app bar may be condensed on desktop to accommodate denser layouts.

Diagram of regular top app bar on desktop, dense top app bar on desktop
1. Regular top app bar on desktop
2. Dense top app bar on desktop

Prominent dense ​

Prominent top app bars on desktop can have a dense state to accommodate denser layouts.

Diagram of prominent top app bar on desktop, prominent dense top app bar on desktop
1. Prominent top app bar on desktop
2. Prominent dense top app bar on desktop

Images in bars ​

Bars can contain imagery. Prominent top app bars are recommended for image use because they provide more space.

Don’t use imagery that makes top app bar text and icons illegible.

A prominent top app bar with imagery
A prominent top app bar with imagery

Don’t place imagery in a bar that makes the top app bar’s text and icons illegible

Don't

Don’t place imagery in a bar that makes the top app bar’s text and icons illegible.

Navigation icon (optional) ​


A navigation icon is optional. When it appears in an app bar, it’s aligned on the left of the bar.

It can take any of the following forms:

  • A menu icon, which opens a navigation drawer
  • An up arrow, which navigates upward an app’s hierarchy
  • A back arrow, which returns to the previous screen
Navigation icon
1. Navigation icon

Title (optional) ​

The app bar title can be used to describe:

  • The screen a user is currently on
  • The section the user is currently in
  • The app being used

By default, titles are left aligned on desktop. The default position of titles on mobile and tablet depends on the platform. More information on this is available in cross-platform adaptation.

Do: if title text is long, use a prominent app bar and wrap the title to two lines

Do

If title text is long, use a prominent app bar and wrap the title to two lines.

Don’t wrap text in a regular top app bar

Don't

Don’t wrap text in a regular top app bar.

Don’t truncate text, hiding the full title may cause misunderstanding

Don't

Don’t truncate text, hiding the full title may cause misunderstanding.

Don’t shrink text to fit on a single line

Don't

Don’t shrink text to fit on a single line.

Action items and overflow menu (optional) ​

App actions are placed on the right side of an app bar, either as icons or in an overflow menu. Overflow menus differ across mobile platforms. For more guidance refer to cross-platform adaptation.

Icon placement ​

Place most-used actions on the left, progressing towards the least-used actions on the far right. Any remaining actions that don’t fit on the app bar can go into an overflow menu.

Actions move into and out of the overflow menu as the app bar width changes, such as if a device is rotated from landscape to portrait orientation. More guidance on this is available in top app bar behavior.

Do: order action items by putting the most-used action (1) on the far left

Do

Order action items by putting the most-used action (1) on the far left, second most used action (2) to its right, and so on. Any remaining or secondary actions should be placed in an overflow menu (3).

Cross-platform adaptation ​

On iOS, toolbars are called navigation bars and their height is shorter than the Android version. On Android, toolbars are called top app bars.

It’s recommended to use a platform’s default text alignment for toolbar titles, unless multiple action buttons are present.

Titles are left-aligned by default in top app bars
Android
Titles are left-aligned by default in top app bars.
Titles are center-aligned by default in navigation bars
iOS
Titles are center-aligned by default in navigation bars.

When multiple actions, or even no actions, appear on the right side, top app bar titles are always left-aligned
Android
When multiple actions, or even no actions, appear on the right side, top app bar titles are always left-aligned.
When multiple action buttons are on the right side, or on the home screen of an application, titles may be left-aligned
iOS
When multiple action buttons are on the right side, or on the home screen of an application, titles may be left-aligned.

Translucency ​

Material Design uses shadows to express elevation in app bars. In iOS, products can use translucency to differentiate app bars from content.

Use shadow to express elevation
Android
Use shadow to express elevation.
Products have the option to use translucency to express elevation in iOS
iOS
Products have the option to use translucency to express elevation in iOS. Use a hairline as a bottom border of the app bar to ensure differentiation between the top app bar and scrolling content.

Behavior ​

Scrolling ​

Upon scrolling, the top app bar can remain in place, or transform in the following ways:

  • Scrolling upward hides the top app bar
  • Scrolling downward reveals the top app bar

When the top app bar scrolls, its elevation above other elements becomes apparent.

The top app bar disappears upon scrolling up, and appears upon scrolling down.

Top app bars can be positioned at the same elevation as content. Upon scroll, they increase elevation and let content scroll behind them.

When scrolling up, prominent top app bars using imagery can transform into normal top app bars. They should not return to prominent mode until the user scrolls back to the top of the page.

Nesting actions ​

When a screen is resized, the top app bar resizes with it. Actions are consolidated into the overflow menu.

Action positioning ​

The actions move to the overflow menu from right to left, making the most-used action the last to be moved to the overflow menu.

As a top app bar is resized, actions move to the overflow menu from right to left.

Scaled down to 62.5%

Contextual action bar ​

Usage ​

A top app bar can transform into a contextual action bar to provide contextual actions to selected items. For example, upon user selection of photos from a gallery, the top app bar transforms to a contextual app bar with actions related to the selected photos.

When a top app bar transforms into a contextual action bar, the following changes occur:

  • The bar color changes
  • Navigation icon is replaced with a close icon
  • Top app bar title text converts to contextual action bar text
  • Top app bar actions are replaced with contextual actions

Upon closing, the contextual action bar transforms back into a top app bar.

Top app bar transforming into a contextual action bar

Anatomy ​


Diagram of close button, contextual title, contextual actions, overflow menu
1. Close button (instead of a navigation icon)
2. Contextual title
3. Contextual actions
4. Overflow menu (optional)

Bar ​

When a top app bar transforms into a contextual action bar, the bar should change color to indicate a change of state.

Theming ​

Fortnightly Material Theme ​

This news app’s top app bar has been customized using Material Theming. Areas of customization include color and typography.

Fortnightly’s customized top app bar
Fortnightly’s customized top app bar

Fortnightly

A news app that uses Material Design components and Material Theming to create an on-brand, content-focused experience.

Related article

The color system

Create a color theme that reflects your brand or style

Related article

Applying color to UI

In a UI, color has a variety of roles: from containing meaning, to expressing a look and feel.

Related article

Color ​


Fortnightly Material theme: color
ElementCategoryAttributeValue
ContainerSurfaceColor
Opacity
#FFFFFF
100%
Text, iconsOn SurfaceColor
Opacity
#000000
100%

Understanding typography

Typography is critical in establishing hierarchy and expressing brand presence that supports an effective digital experience.

Related article

Typography ​


Fortnightly Material theme: typography
ElementCategoryAttributeValue
TextH6Typeface
Font
Size
Case
Merriweather
Bold Italic
20
Title case

Rally Material Theme ​

This financial app’s top app bar has been customized using Material Theming. Areas of customization include color and typography.

Rally’s customized top app bar
Rally’s customized top app bar

Rally

Rally is a personal finance app that demonstrates how Material Design can be used for finance.

Related article

The color system

Create a color theme that reflects your brand or style

Related article

Applying color to UI

In a UI, color has a variety of roles: from containing meaning, to expressing a look and feel.

Related article

Color ​


Rally Material theme: color
ElementCategoryAttributeValue
ContainerSurfaceColor
Opacity
#363640
100%
TextOn SurfaceColor
Opacity
#FFFFFF
100%
IconsOn SurfaceColor
Opacity
#FFFFFF
60%

Understanding typography

Typography is critical in establishing hierarchy and expressing brand presence that supports an effective digital experience.

Related article

Typography ​


Rally Material theme: typography
ElementCategoryAttributeValue
TextH6Typeface
Font
Size
Case
Roboto Condensed
Regular
20
Title case

Shrine Material Theme ​

This retail app’s top app bar has been customized using Material Theming. Areas of customization include color and typography.

Shrine’s customized top app bar
Shrine’s customized top app bar

Shrine

Shrine is a lifestyle and fashion brand that demonstrates how Material Design can be used in e-commerce.

Related article

The color system

Create a color theme that reflects your brand or style

Related article

Applying color to UI

In a UI, color has a variety of roles: from containing meaning, to expressing a look and feel.

Related article

Color ​


Shrine Material theme: color
ElementCategoryAttributeValue
ContainerPrimaryColor
Opacity
#FEDBD0
100%
Text, iconsOn PrimaryColor
Opacity
#442C2E
100%

Understanding typography

Typography is critical in establishing hierarchy and expressing brand presence that supports an effective digital experience.

Related article

Typography ​


Shrine Material theme: typography
ElementCategoryAttributeValue
TextH6Typeface
Font
Size
Case
Rubik
Medium
20
Title case

Specs ​

Mobile ​

Regular top app bar ​


36056241616242432162016

Extended top app bar ​


2412816282424167236016
Pager
Previous pageApp bars: bottom
Next pageBackdrop

Released under the Apache-2.0

Copyright © 2018-Present Google

https://m2.material.io/components/app-bars-top

Released under the Apache-2.0

Copyright © 2018-Present Google