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
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.