CodePudding user response:
CodePudding user response:
This is not very simple? Well, I am writing to you, you may be just starting,
Final TextView TextView=the findViewById (R.i which extView);
The EditText EditText=the findViewById (R.i d.e ditText);
The Button Button=the findViewById (R.i db utton);
Final String edContent=editText. GetText (). The toString (). The trim ();
Button. SetOnClickListener (new View. An OnClickListener () {
@ Override
Public void onClick (View v) {
TextView. SetText (edContent);
}
});