zealbell / ColorTextView

An Highlightable MultiColor-TextView

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project Status: Active - Initial development has started, usable release; work hasn't been stopped

ColorTextView

A MultiColor-TextView for having texts of different colors in the same TextView + a highlightable capability

public-methods

        public void setText(String textStatement, String colorStatement)
        public void Highlight(String highlightString, int highlightColor)
        public void unHighlight()
        public void resetColors(String colorStatement)

Quick Start

Gradle

   dependencies {
      implementation 'com.github.54LiNKeR:ColorTextView:1.1.0'
   }

Layout

Demo

  <linkersoft.blackpanther.text.ColorTextView
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:textSize="14sp"
         app:Sentence="Text 1 # Bold Text2% # Text3"
         app:Colours="#F53457:#A31730:#00a0b4"
      />

About

An Highlightable MultiColor-TextView


Languages

Language:Java 100.0%