Skip to content

Arsh069/CustomColor-Android

Repository files navigation

CustomColor ✨

Custom Color for text

Setup ⚙️

Add it in your root build.gradle at the end of repositories:

allprojects {
    repositories {
        //...omitted for brevity
        maven { url 'https://jitpack.io' }
    }
}

Add the dependency

dependencies {
     implementation 'com.github.Arsh069.CustomColor-Android:final:0.1.3'
}

Usage 📱

Sample implementation here

Changing text color

   CustomColor.ColorName("text", Start Index, End Index, Text id)

In the above sample you have to add a String text, start index and end index for giving range of text you want to be colored and the id of textview where you want to set it.