ITEEDU

Hooking into a Screen Element

You can get a handle to a screen element by calling Activity.findViewById. You can use this handle to set or retrieve any values exposed by the object.

TextView msgTextView = (TextView)findViewById(R.id.msg);
msgTextView.setText(R.string.push_me);