A
A
Alexey Medvedev2015-09-24 18:53:51
Java
Alexey Medvedev, 2015-09-24 18:53:51

How to check what string is set in TextView?

It is not possible to compare through the TextView comparison operator and a specific string from Strings. What are the ways to compare the contents of a TextView at a given time with some text/string?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IceJOKER, 2015-09-24
@RockBearLTD

if(tv.getText().equals("someString")) {
  System.out.println("All right =)");
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question