Time for action - creating the Review layout
We've got a skeleton tab structure, but there's nothing in it yet. The first tab is titled Review, and this is where we are going to start. We've just finished enough Java code to load up the tabs and put them on the screen. Now we go back to the
main.xml layout file and populate this tab with some widgets that supply the user with review information.
res/layout/main.xmlin an editor or IDE.
- Inside the
<LayoutElement>that we named
review, add a new
TextViewthat will contain the name of the restaurant:
<TextView android:id="@+id/name" android:textStyle="bold" android:textSize="25sp" android:textColor="#ffffffff" android:gravity="center|center_vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"/> ...