// Simplified definition of class TextView in the file TextView.java,

// showing two fields and a constructor that initializes them.


public class TextView extends View {

    // The text to be displayed on the screen

    private String mText;

    // The color of the text, as an rgb number (red/green/blue)

    private int mTextColor;


    // This method is a constructor for class TextView.

    public TextView() {

        mText = "";

        mTextColor = Color.BLACK;





// In another .java file, call the constructor to create an object of class TextView.

// Store a reference to the newborn TextView object in the variable textView.

TextView textView = new TextView();