how to set a number after calculating on a text view received by an edit text

Issue How can i put the number after calculated on the text view?? i can share more files if needed fun calcularIdade() { val editTextHello = findViewById<TextInputEditText>(R.id.Date) var num= Integer.parseInt(editTextHello.toString()) num = 2022-num Toast.makeText(this, editTextHello.text, Toast.LENGTH_SHORT).show() findViewById<TextView>(R.id.textView1).setText(num.toString()) } } <com.google.android.material.textfield.TextInputEditText

Continue reading