Skip to content

This light-weight library provides images with letter/text like the Gmail app. It extends the Drawable class thus can be used with existing/custom/network ImageView classes.

Notifications You must be signed in to change notification settings

rahman22/TextDrawable-App

Repository files navigation

Overview

This light-weight library provides images with letter/text like the Gmail app. It extends the Drawable class thus can be used with existing/custom/network ImageView classes

Import with Gradle:

repositories{

maven { url 'http://dl.bintray.com/amulyakhare/maven' }

}

dependencies {

compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'

}

####5. Built-in color generator:

ColorGenerator generator = ColorGenerator.MATERIAL;

int color1 = generator.getRandomColor();


int color2 = generator.getColor("[email protected]")


TextDrawable.IBuilder builder = TextDrawable.builder()
				.beginConfig()
				.withBorder(4)
				.endConfig()
				.rect();

TextDrawable ic1 = builder.build("A", color1);
TextDrawable ic2 = builder.build("B", color2);

Screenshot

About

This light-weight library provides images with letter/text like the Gmail app. It extends the Drawable class thus can be used with existing/custom/network ImageView classes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages