Create the Navigation Bar

The navigation bar for the MyContactList app sits at the bottom of the screen and allows the user to quickly move between different functions in the app by tapping one of the images on the bar (Figure 4.3). The navigation bar is made up of three ImageButtons contained within a RelativeLayout. The RelativeLayout is set to be just big enough to hold the three buttons and placed within the root RelativeLayout that was placed in the layout file by the wizard when you created the activity. The navigation layout is anchored to the bottom of that layout so that it always appears at the bottom of the screen.

Image

Figure 4.3 Complete ...

Get Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.