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.


Figure 4.3 Complete ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.