O'Reilly logo

Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android by Michael Eierman, Jakob Iversen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Create the Settings Layout

Open the activity_contact_settings.xml file. If you have not already done so, add the navigation buttons to the layout. Do this by opening the activity_contact.xml file and copying the RelativeLayout xml with the +id set to navbar to the activity_contact_settings.xml. Be sure to include the end </RelativeLayout> tag. While in the XML view, delete the TextView XML and delete the padding attributes in the root RelativeLayout. Switch to Graphical Layout to verify that the navigation bar is visible and in the correct position. There should be no whitespace around the navigation bar.

In Graphical Layout, drag two medium TextViews and two RadioGroup widgets from the Form Widgets folder in the Palette to the layout. The

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required