Answer the question
In order to leave comments, you need to log in
How to find text in editText?
I need to find the $ sign in editText.
"equals" doesn't help as it compares the entire string.
if (editText.getText().toString().equals("$"))
#code
Answer the question
In order to leave comments, you need to log in
trycontains()
if (editText.getText().toString().contains("$")){
Log.i("MYTAG", "Yep, there is it");
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question