All Projects → ha-yi → Multicolortextview

ha-yi / Multicolortextview

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Multicolortextview

Swipeablecard
A simple implementation of swipe card like StreetView
Stars: ✭ 812 (+4676.47%)
Mutual labels:  library
Sumologic Python
Sumologic's python api library
Stars: ✭ 6 (-64.71%)
Mutual labels:  library
Elongation Preview
ElongationPreview is an elegant UI push-pop style view controller. iOS library made by @Ramotion
Stars: ✭ 888 (+5123.53%)
Mutual labels:  library
Devtools
The Hoa\Devtools library.
Stars: ✭ 5 (-70.59%)
Mutual labels:  library
Experiment
🔬 Elixir Library for carefully refactoring critical paths by performing experiments.
Stars: ✭ 6 (-64.71%)
Mutual labels:  library
Greedo Layout For Ios
Full aspect ratio grid layout for iOS
Stars: ✭ 837 (+4823.53%)
Mutual labels:  library
Vlany
Linux LD_PRELOAD rootkit (x86 and x86_64 architectures)
Stars: ✭ 804 (+4629.41%)
Mutual labels:  library
Minifuture
A monadic Future design pattern implementation in Swift
Stars: ✭ 16 (-5.88%)
Mutual labels:  library
System.js
The library System.js designed to improve the quality of writing JavaScript source code. It contains features that allow you refactor source code. Thanks to the clear and readable functions, the code will be good understood and supported accordingly.
Stars: ✭ 6 (-64.71%)
Mutual labels:  library
Matter
Material Design Components in Pure CSS. Materializing HTML at just one class per component 🍰
Stars: ✭ 888 (+5123.53%)
Mutual labels:  library
Cup
CUP, common useful python-lib. (Currently, Most popular python lib in baidu)
Stars: ✭ 826 (+4758.82%)
Mutual labels:  library
Tfidf
Simple TF IDF Library
Stars: ✭ 6 (-64.71%)
Mutual labels:  library
Realm Core
Core database component for the Realm Mobile Database SDKs
Stars: ✭ 836 (+4817.65%)
Mutual labels:  library
Zlib Ng
zlib replacement with optimizations for "next generation" systems.
Stars: ✭ 807 (+4647.06%)
Mutual labels:  library
Shpref Library
💾 Android Kotlin library. Shared preferences wrapper. (2020)
Stars: ✭ 16 (-5.88%)
Mutual labels:  library
Morph Bottom Navigation
This library represents a Bottom Navigation with an awesome morph effect on top of the selected item
Stars: ✭ 803 (+4623.53%)
Mutual labels:  library
Arma3launcherlib
Simple .NET library containing everything needed for a custom Arma 3 launcher.
Stars: ✭ 7 (-58.82%)
Mutual labels:  library
Scalable Image Matching
This is a image matching system for scalable and efficient matching of images from a large database. The basic idea is to compute perceptural hash value for each image and compare the similarity based on the pHash computed. Searching are scalable with the elasticsearch as the backend database.
Stars: ✭ 17 (+0%)
Mutual labels:  library
Galgo Ios
When you want your logs to be displayed on screen
Stars: ✭ 16 (-5.88%)
Mutual labels:  library
Storagedb
MongoDB-like API for HTML5 Storage (localStorage and sessionStorage)
Stars: ✭ 16 (-5.88%)
Mutual labels:  library

MultiColorTextView Download

This is a simple library to display text with multicolor.

sample sample sample

How to Install

Add to your app module build.gradle

compile 'com.lombokcyberlab.android.multicolortextview:MultiColorTextView:1.0.0'

or for gradle 3.x

implementation 'com.lombokcyberlab.android.multicolortextview:MultiColorTextView:1.0.0'

or maven add to your pom file:

<dependency>
  <groupId>com.lombokcyberlab.android.multicolortextview</groupId>
  <artifactId>MultiColorTextView</artifactId>
  <version>1.0.0</version>
  <type>pom</type>
</dependency>

Usage

Using Color sheme

<com.lombokcyberlab.android.multicolortextview.MultiColorTextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        app:text="Google Colors"
        app:colorScheme="google"
        app:textStyle="bold"
        app:textSize="40"/>

Using Custom Colors

First define your colors:

<string-array name="colorIndonesia">
        <item>#FF0000</item>
        <item>#FF0000</item>
        <item>#FF0000</item>
        <item>#FF0000</item>
        <item>#FF0000</item>
        <item>#FFFFFF</item>
        <item>#FFFFFF</item>
        <item>#FFFFFF</item>
        <item>#FFFFFF</item>
        <item>#FFFFFF</item>
        <item>#FFFFFF</item>
        <item>#FFFFFF</item>
    </string-array>

Then use it:

<com.lombokcyberlab.android.multicolortextview.MultiColorTextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        app:colors="@array/colorIndonesia"
        app:text="MERAH PUTIH"
        app:textSize="40"
        app:textStyle="bold" />

Available Options

Options Description
app:text Text to display
app:colors Array reference of colors
app:colorScheme Use predefined color schemes.
app:textSize Text Size
app:textStyle only bold is available

Limitation

  • Only displaying single line text (unwrapped).
  • Limited color scheme
  • one color in colors array for one character.

Buy Me A Coffee

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].