Time for action - implementing the reservation layout

In our main.xml layout resource, we need to add the View objects which will form the Reservation tab. Currently it consists only of an empty ScrollView, which enables vertically-long layouts to be scrolled by the user if the entire user interface doesn't fit on the screen.

  1. Open the main.xml file in your editor or IDE.
  2. Inside the<ScrollView> we had created for the Reservation tab earlier. Declare a new vertical LinearLayout element:
    <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
    
  3. Inside the new LinearLayout element, create a TextView to ask the user under what name the reservation should be made:
    <TextView android:text="Under ...

Get Android User Interface Development now with O’Reilly online learning.

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