All Projects → xeoh → Texthighlighter

xeoh / Texthighlighter

Licence: mit
TextHighlighter for android. Highlights your TextView easily.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Texthighlighter

Bubble Navigation
🎉 [Android Library] A light-weight library to easily make beautiful Navigation Bar with ton of 🎨 customization option.
Stars: ✭ 1,537 (+1055.64%)
Mutual labels:  android-ui
Truffle Shuffle
An Android data-driven, percentage-based UI Card Gallery Library
Stars: ✭ 117 (-12.03%)
Mutual labels:  android-ui
Zoomabletextureview
Adding zoom and scroll gestures to video playback on Android
Stars: ✭ 122 (-8.27%)
Mutual labels:  android-ui
Android Observablescrollview
Android library to observe scroll events on scrollable views.
Stars: ✭ 9,625 (+7136.84%)
Mutual labels:  android-ui
Teammate Android
A Team Management app for creating tournaments and games for various sports
Stars: ✭ 116 (-12.78%)
Mutual labels:  android-ui
Vectorifydahome
📱 Minimal app to apply wallpapers from a vast (400+) collection of vector graphics 🙃
Stars: ✭ 119 (-10.53%)
Mutual labels:  android-ui
Busbookingui Android
Check out the new style for App Design aims for the Bus Booking Service...😉😀😁😎
Stars: ✭ 105 (-21.05%)
Mutual labels:  android-ui
Paris
Define and apply styles to Android views programmatically
Stars: ✭ 1,716 (+1190.23%)
Mutual labels:  android-ui
Ui2018
安卓高级UI代码,配合博客详细讲解知识点
Stars: ✭ 1,571 (+1081.2%)
Mutual labels:  android-ui
Easyadapter
Recyclerview adapter library- Create adapter in just 3 lines of code
Stars: ✭ 122 (-8.27%)
Mutual labels:  android-ui
Cameraxdemo
A sample camera app with CameraX API from Android Jetpack
Stars: ✭ 112 (-15.79%)
Mutual labels:  android-ui
Compactcalendarview
An android library which provides a compact calendar view much like the one used in google calenders.
Stars: ✭ 1,504 (+1030.83%)
Mutual labels:  android-ui
Anychart Android
AnyChart Android Chart is an amazing data visualization library for easily creating interactive charts in Android apps. It runs on API 19+ (Android 4.4) and features dozens of built-in chart types.
Stars: ✭ 1,762 (+1224.81%)
Mutual labels:  android-ui
Xupdate
🚀A lightweight, high availability Android version update framework.(一个轻量级、高可用性的Android版本更新框架)
Stars: ✭ 1,688 (+1169.17%)
Mutual labels:  android-ui
Carouselrecyclerview
Carousel Recyclerview let's you create carousel layout with the power of recyclerview by creating custom layout manager.
Stars: ✭ 107 (-19.55%)
Mutual labels:  android-ui
Mediapicker
Easy customizable picker for all your needs in Android application
Stars: ✭ 105 (-21.05%)
Mutual labels:  android-ui
Androidrate
AndroidRate is a library to help you promote your Android app by prompting users to rate the app after using it for a few days.
Stars: ✭ 117 (-12.03%)
Mutual labels:  android-ui
Shotang App
The New Home Screen is designed in a modular way with the core focus on product discovery. Search, Deals, Products everything has been brought upfront. The hamburger menu has been replaced with a bottom navigation bar for easy reachability. On the tech side too, this design allows us to run new deals and other experiments in an agile manner which wasn't possible in the previous version.
Stars: ✭ 132 (-0.75%)
Mutual labels:  android-ui
Fancyshowcaseview
An easy-to-use customisable show case view with circular reveal animation.
Stars: ✭ 1,662 (+1149.62%)
Mutual labels:  android-ui
Firebasecrud
Rich UI and animation flutter app backed by firebase
Stars: ✭ 121 (-9.02%)
Mutual labels:  android-ui

Android TextHighlighter

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

Introduction

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

Sample

Requirements

Android API ≥ 2.3 (API Level 9)

Gradle

You can import TextHighlighter from jcenter.

repositories {
    jcenter()
}

dependencies {
    compile 'com.xeoh.android:text-highlighter:1.0.3'
}

Usage

// Initialize TextHighlighter
private TextHighlighter textHighlighter = new TextHighlighter()
      .setBackgroundColor(Color.parse("#FFFF00"))
      .setForegroundColor(Color.RED)
      .setBold(true)
      .setItalic(true)
      .addTarget(findViewById(R.id.anyTextView))
      .highlight("word", TextHighlighter.BASE_MATCHER);

// invalidate after add more targets
textHighlighter.addTarget(findViewById(R.id.anyButton))
      .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.

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].