CHAPTER 6: Android Screen Design: Writing to the Display Using Activity and View 201
Inside of this “bootstrap” method structure that Eclipse will write for you, you will instantiate your
nameData TextView object, which you declared earlier at the top of the class. This is done using the
following Java code:
nameData = (TextView)findViewById(R.id.name);
If you type in the R.id part, and then hit the period key, Eclipse will display a helper pop-up
containing all of the UI elements that have an ID attribute (parameter) assigned to them, as is shown
in Figure 6-32.
Figure 6-31. Create a createUiTextViews( ) method call in onCreate( ) and allow Eclipse to create the method for you