0

I am working on an Android project that needs to detect some pre-defined keywords in the EditText, and then color those keywords differently from the other non-keywords, it's like Syntax Coloring in Eclipse.

For Example: The pre-defined word is

stackoverflow!

So, when the user type in the keyword stackoverflow in the EditText, it will color the keyword-stackoverflow and should look like:

enter image description here

Is there anyone know how to do it? Thanks!

Chengzhi
  • 2,531
  • 2
  • 27
  • 41

0 Answers0