Popularity
1.6
Growing
Activity
5.0
Declining
36
1
9

Description

Avatar image generator help to generate the first letter avatar Image like gmails contact avatar. It takes the first letter of the persons name to generates a drawable that can be be set to an ImageView.

Programming language: Kotlin
Tags: Android     ImageView Widget     Android-library     Avatar     Gmail     First Letter     Name    

AvatarImageGenerator alternatives and similar packages

Based on the "ImageView Widget" category

Do you think we are missing an alternative of AvatarImageGenerator or a related project?

Add another 'ImageView Widget' Package

README

AvatarImageGenerator

CircleCI Join the chat at https://gitter.im/AvatarImageGenerator/community Download Generate first letter avatar Image like gmail's contact avatar. It generates an drawable that can be be set to an ImageView.

Installation

Add the Following to your gradle file.

         implementation 'com.first.avatargenerator:AvatarImageGenerator:VERSION'

Supports

Using glide or Picasso you can set the drawable to an imageView as a placeholder.

  1. Picasso
  2. Glide

Picasso

 Picasso.get()
    .load("https://brokenfortest")
    .resize(50, 50)
    .placeholder(AvatarGenerator.avatarImage(this, 200, AvatarConstants.CIRCLE, "Android"))
    .into(imageView2)

Glide

 Glide.with(this)
    .load("http://brokenfortest")
    .placeholder(AvatarGenerator.avatarImage(this, 200, AvatarConstants.CIRCLE, "Kotjav"))
    .into(imageView3)

Without any Library

imageView.setImageDrawable(
    AvatarGenerator.avatarImage(
      this,
      200,
      AvatarConstants.RECTANGLE,
      "Skyways"
    )

Color Model The current version supports material colors A 400,700 and 900.

  1. COLOR400
  2. COLOR700
  3. COLOR900
 Picasso.get()
    .load("https://brokenfortest")
    .resize(50, 50)
    .placeholder(AvatarGenerator.avatarImage(this, 200, AvatarConstants.CIRCLE, "Android",AvatarConstants.COLOR900))
    .into(imageView2)

Shape

  1. Circle
  2. Square
AvatarConstants.RECTANGLE,
AvatarConstants.CIRCLE