Time for action - implementing the reservation layout
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.
- Open the
main.xmlfile in your editor or IDE.
- Inside the
<ScrollView>we had created for the
Reservationtab earlier. Declare a new vertical
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
- Inside the new
LinearLayoutelement, create a
TextViewto ask the user under what name the reservation should be made:
<TextView android:text="Under ...