Need help with TextHighlighter?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

135 Stars 21 Forks MIT License 8 Commits 2 Opened issues


TextHighlighter for android. Highlights your TextView easily.

Services available


Need anything else?

Contributors list

# 319,844
8 commits

Android TextHighlighter

version 1.0.3 API Level ≥9 API ≥2.3 API ≥9 MIT LICENSE javadoc


highlights every View which inherits TextView(i.e. TextView, Button, EditText). Set targets and Colors. Then highlight any word.



Android API ≥ 2.3 (API Level 9)


You can import TextHighlighter from jcenter. ```gradle repositories { jcenter() }

dependencies { compile '' } ```


// Initialize TextHighlighter
private TextHighlighter textHighlighter = new TextHighlighter()
      .highlight("word", TextHighlighter.BASE_MATCHER);

// invalidate after add more targets textHighlighter.addTarget(findViewById( .invalidate(TextHighlighter.BASE_MATCHER);

// invalidate after color changes textHighlighter.setForegroundColor(Color.GREEN) .invalidate(TextHighlighter.BASE_MATCHER);

// change matcher to case insensitive textHighlighter.invalidate(TextHighlighter.CASE_INSENSITIVE_MATCHER);

/* You can use multiple TextHighlighter for multiple keyword or multiple styles. However, if two highlighter highlights same word, priority depends on order of highlight(...) function call */

See sample application

Version History

  • 1.0.0 Testing version. (Not published)
  • 1.0.1 First Deploy.
  • 1.0.2 Add bold and italic feature.
  • 1.0.3 Fix Performance issue for large amount of list items.


TextHighlighter is available under the MIT license. See the LICENSE file for more info.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.