# Control bar

<br />

The control bar provides controls associated with a particular view. It displays up to 5 controls in its unexpanded version, and up to 5 additional controls when expanded.

In media apps, the control bar is used in the playback view for Play/Pause, Previous, Next, and other controls, including those for custom third-party actions.
[![callout icon](https://developers.google.com/static/cars/design/common/images/default.svg)
Minimized control bar component The minimized control bar provides a minimal set of controls available across multiple views](https://developers.google.com/cars/design/automotive-os/components/minimized-control-bar)

*** ** * ** ***

## Anatomy

The control bar has two formats: unexpanded and expanded. The unexpanded version can include up to 5 controls. In media apps,, one of these is Play/Pause.

When expanded, the control bar can include up to 5 additional controls in a second row. Users can select the overflow button to expand or collapse the control bar.
![](https://developers.google.com/cars/design/automotive-os/components/images/action-bar-anatomy-1.png) 1. Control bar portion visible before expansion  
2. Expanded portion of action bar  
3. One of the controls  
4. Overflow button (expands and collapses control bar)

*** ** * ** ***

## Specs

[![callout icon](https://developers.google.com/static/cars/design/common/images/default.svg)
Layout labels Definitions of E, M, KL, P, Flex](https://developers.google.com/cars/design/intro-terms#layout_labels)

### Control bar

![](https://developers.google.com/cars/design/automotive-os/components/images/action-bar-spec-1.png)

### Expanded control bar

![](https://developers.google.com/cars/design/automotive-os/components/images/action-bar-spec-2.png)

### Placement of 1--4 controls on control bar with anchored center control

![](https://developers.google.com/cars/design/automotive-os/components/images/action-bar-spec-3.png) An anchored center control is a control with a preferred placement in the center of the control bar, such as a music play/pause button.

### Placement of 1--4 controls on control bar with no anchored control

![](https://developers.google.com/cars/design/automotive-os/components/images/action-bar-spec-4.png)

### Placement of 6--9 controls on control bar

![](https://developers.google.com/cars/design/automotive-os/components/images/action-bar-spec-5.png)

*** ** * ** ***

## Scaling layouts

These reference layouts show how to adapt the control bar to accommodate screens of various widths and heights. (Width and height categories are defined in the [Layout](https://developers.google.com/cars/design/automotive-os/design-system/layout) section.) Note that all pixel values are in rendered pixels, before any down-sampling or up-sampling occurs.
[![callout icon](https://developers.google.com/static/cars/design/common/images/default.svg)
Layout Margins, keylines, and padding for various screen sizes](https://developers.google.com/cars/design/automotive-os/design-system/layout) [![callout icon](https://developers.google.com/static/cars/design/common/images/default.svg)
Layout labels Definitions of E, M, KL, P, Flex](https://developers.google.com/cars/design/intro-terms#layout_labels)

### Extra-wide screens with more than 1028dp between margins

![](https://developers.google.com/cars/design/automotive-os/components/images/action-bar-ar-1.png) When the width between margins is greater than the maximum width of the control bar (1028dp), center the control bar horizontally. The control bar won't extend all the way to the margins.

### Extra-wide screens with less than 1028dp between margins

![](https://developers.google.com/cars/design/automotive-os/components/images/action-bar-ar-2.png)

### Wide screens

![](https://developers.google.com/cars/design/automotive-os/components/images/action-bar-ar-3.png)

### Standard-width screens

![](https://developers.google.com/cars/design/automotive-os/components/images/action-bar-ar-4.png) On screens of standard width, center the control bar horizontally. The control bar will extend into the margins. On a standard width screen of exactly 690 dp, as in this example, use side padding of P5 between the edges of the control bar and the edges of the screen.

### Short screens

![](https://developers.google.com/cars/design/automotive-os/components/images/action-bar-ar-0.png)

### Control bar expanded on screens shorter than 1000dp

![](https://developers.google.com/cars/design/automotive-os/components/images/action-bar-ar-5.png)

### Control bar expanded on short screens

![](https://developers.google.com/cars/design/automotive-os/components/images/action-bar-ar-7.png)

### Control bar expanded on screens taller than 1000dp

![](https://developers.google.com/cars/design/automotive-os/components/images/action-bar-ar-6.png)

*** ** * ** ***

## Styles

[![callout icon](https://developers.google.com/static/cars/design/common/images/default.svg)
Color guidelines Palettes, elevation and opacity values, and more](https://developers.google.com/cars/design/automotive-os/design-system/color)

### Color

| Element | Color(day mode) | Color (night mode) |
|---|---|---|
| Primary icons | White | White @ 88% |
| Full-screen scrim | Black @ 78% | Black @ 84% |
| Gradient scrim | TBD | TBD |

### Sizing

| Element | Size (dp) |
|---|---|
| Control bar | 96 (short screens) / 128 (standard height and above) |
| Primary icon | 44 |

*** ** * ** ***

## Examples

![](https://developers.google.com/cars/design/automotive-os/components/images/action-bar-mock-3.png) Control bar in playback view ![](https://developers.google.com/cars/design/automotive-os/components/images/action-bar-mock-4.png) Expanded control bar in playback view ![](https://developers.google.com/cars/design/automotive-os/components/images/action-bar-mock-5.png) Control bar in media queue ![](https://developers.google.com/cars/design/automotive-os/components/images/action-bar-mock-1.png) Expanded control bar in media queue ![](https://developers.google.com/cars/design/automotive-os/components/images/action-bar-mock-6.png) Control bar in media queue ![](https://developers.google.com/cars/design/automotive-os/components/images/action-bar-mock-2.png) Expanded control bar in media queue ![](https://developers.google.com/cars/design/automotive-os/components/images/action-bar-controlbar.gif) Control bar expanding and contracting as a user taps the overflow button