TextView
A TextView object represents text on the screen.
Example:
<TextView android:id="@+id/swimmernameid"
android:layout_height="fill_parent"
android:layout_width="wrap_content"
android:height="25dip"
android:text="Swimmer Name"
/>
You can declare a reference variable to the TextView in code.
You only need a reference variable if you need to refer to the TextView.
private TextView swimmerNameView;
You can get a reference to it by calling findViewById.
You usually do this in the onCreate method.
swimmerNameView = (TextView) findViewById(R.id.swimmernameid);
You can call methods in code using the reference variable.
swimmerNameView.setText("Swimmer Name");