Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How does android set the values displayed in TextView in the program?
How does android set the values displayed in TextView in the program?
The specific operation is as follows:

button

British telecommunications company

=(button)findviewbyid(r . id . button 1);

Text view

tx =(textview)findviewbyid(r . id . textview 1);

tx . settext(Bt . gettext());

Gettext () gets the text on the button and displays it in textview.

Extended data:

Displays text to users and optionally allows them to edit the text. TextView is a complete text editor, but the base class does not allow editing; Its subclass EditText allows text editing.

Allow users to copy part or all of the content, paste it elsewhere, set the XML attribute Android: textisselectable: "true" or set the related method settextisselectable to "true". Textisselectable allows users to select gestures in TextView, thus triggering the copy/paste control built into the system.

Baidu Encyclopedia-Text View