0

Iam a newbie So How to get the number value of textview and compare it that if it less than a 100 for example some other textview text changes to whatever i want ????

for example that if {textview1 < 25 || > 100} i want to change the textview2 text to be "Hello" else textview2 text "Goodbye"

Iam using fragment Activity

ElG0hary
  • 19
  • 4
  • Does this answer your question? [android on Text Change Listener](https://stackoverflow.com/questions/20824634/android-on-text-change-listener) – javdromero Aug 09 '21 at 22:16

1 Answers1

0

Should be something like this

textview2.Text = if (textview1.Text.ToInt() < 25 || textview1.Text.ToInt() > 100) "Hello" else "Goodbye"
AIMIN PAN
  • 1,563
  • 1
  • 9
  • 13