-3

I want that after pressing the button with the "create" id, the text from the textview that was manually entered in plaintext is displayed

I have plaintext and button.

In plaintext I write "test" or something like this and then I click button, this text should be displayed below in textview

Wex
  • 1
  • 1

1 Answers1

0

On button press (the click listener) take the text in the plaintext (input or edittext view i guess):

val plainText = yourEditTextView.text.toString()

and to set the text in our textView:

textView.text = plainText

This should do the job.

Top4o
  • 547
  • 6
  • 19