From the course: Android Development Essential Training: 3 Navigation

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Add menu items to a navigation bar

Add menu items to a navigation bar - Android Tutorial

From the course: Android Development Essential Training: 3 Navigation

Start my 1-month free trial

Add menu items to a navigation bar

- [Narrator] The bottom navigation view on Android, allows you to move between the primary destinations of your app. You can specify the items you want to display in your navigation view, by means of an Android menu resource. To get started, let's move over to Design mode. We're going to select our bottom navigation view from the component tree, and we'll start out by setting the ID to Bottom Navigation. This is just going to make it easier for us later when we want to access this view from one of our activity classes. And to make this view more visually appealing, let's set the style of the navigation view. We can find that down here under common attributes, we'll click on the dropdown, and let's look for colored. And we can select it from right here and hit Enter. And notice how over here in the preview we can see that the background is now brown, that's going to make it stand out against our white background of the…

Contents