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.

  1. Open res/layout/main.xml in an editor or IDE.
  2. Inside the<LayoutElement> that we named review, add a new TextView that 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"/> ...

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.