Structure your media app 5) Design settings

5) Design settings

In addition to making some decisions about content access and sign-in (tasks 1 through 4), you may need to design settings screens.

If you want users to access app settings, you need to design a settings screen, plus screens for any error-handling that may be needed.

Technical note:
To implement a settings function in your app, you need to declare a Settings activity in your app’s manifest file. For details, consult Add a Settings activity.

As you design your settings flow, keep in mind the requirements and guidelines below.

Layout requirements Expand and collapse content An arrow that points down when collapsed and points up when expanded.

Currently, you need to design versions of your settings screens for both portrait and landscape layouts:

  • A portrait-mode layout for the screen size used in the Volvo Polestar 2 (1068 x 1425dp; 1152 x 153px)
  • A landscape-mode layout for the screen size used in Google's reference Automotive implementation (1075 x 806dp; 1024 x 768px)

You can use the emulator in Android Studio to see how your layouts look in these two implementations. You can also consult Layout for reference information about how car makers’ layouts are adapted to various screen sizes (keeping in mind that details such as margins and padding values may be changed by the car maker).

Settings example & guidelines Expand and collapse content An arrow that points down when collapsed and points up when expanded.

The app bar in the media app template includes an option for a Settings control, which users can select to bring up an overlay with your app settings screen.

A typical settings screen includes the types of elements shown here, in accordance with the guidelines that follow.

Settings guidelines

Be sure to consult the general style guidelines in Guidelines for custom screens, in addition to these guidelines.

Requirement level

Guidelines

SHOULD

App developers should:

  • Keep settings simple and easy to navigate
  • Include only settings that are necessary for app use (such as account info, app preferences, and sign-in/sign-out) or relevant to listening to media in the car (for example, turning off explicit content)
  • Make all settings accessible from a single screen, if possible
  • Avoid use of dialogs beyond simple confirmation

Rationale:

  • Design for cars: Keep in-car settings to the minimum required for that environment, and make them easy to find and use.