The app bar, also known as the action bar, is one of the most important design
elements in your app's activities, because it provides a visual structure and interactive elements
that are familiar to users. Using the app bar makes your app consistent with other Android apps,
letting users quickly understand how to operate your app and have a great experience.
The key functions of the app bar are as follows:
Dedicated space for giving your app an identity and indicating the user's location in the
app.
Predictable access to important actions, such as search.
Support for navigation and view switching, using tabs or menus.
This documentation section describes how to use the AndroidX
Toolbar widget as an
app bar. There are other ways to implement an app bar—for example, some themes set up an
ActionBar as an app bar by
default—but using the AppCompat Toolbar makes it easier to set up an app bar that
works on the widest range of devices. It also gives you room to customize your app bar later in your
app's development.
Learn how to use these widgets to provide advanced functionality in your app bar.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-06-27 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-06-27 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-27 UTC."]]