All Projects → AmosKorir → AvatarImageGenerator

AmosKorir / AvatarImageGenerator

Licence: Apache-2.0 license
Android library to generate image avatar from the first letter of a username. Letter avatar like Gmail Android best practice

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to AvatarImageGenerator

boring-avatars
Boring avatars is a tiny JavaScript React library that generates custom, SVG-based avatars from any username and color palette.
Stars: ✭ 3,582 (+5772.13%)
Mutual labels:  avatar-generator, avatar-placeholder
Materialimageloading
Material image loading implementation
Stars: ✭ 396 (+549.18%)
Mutual labels:  picasso, glide
neon
Provides Jetpack Compose support for different image loading libraries.
Stars: ✭ 13 (-78.69%)
Mutual labels:  picasso, glide
react-nice-avatar
react library for generating avatar
Stars: ✭ 700 (+1047.54%)
Mutual labels:  avatar-generator, avatar-placeholder
identicon-api
A simple API to retrieve SVG identicons
Stars: ✭ 15 (-75.41%)
Mutual labels:  avatar-generator, avatar-placeholder
monsterid
MonsterID adaptation for Composer and modern PHP versions
Stars: ✭ 20 (-67.21%)
Mutual labels:  avatar-generator, avatar-placeholder
Picassopalette
Android Lollipop Palette is now easy to use with Picasso !
Stars: ✭ 366 (+500%)
Mutual labels:  picasso, glide
icodi
Deterministic Random SVG Icon Generator
Stars: ✭ 18 (-70.49%)
Mutual labels:  avatar-generator, avatar-placeholder
Composable Images
The Composable Images is a library providing Jetpack Compose wrapper for Glide, Picasso, and Coil.
Stars: ✭ 107 (+75.41%)
Mutual labels:  picasso, glide
Gallery
图片缩放以及相册的实现
Stars: ✭ 24 (-60.66%)
Mutual labels:  picasso, glide
BaseDevelop
an android project for now fashion open source framework
Stars: ✭ 24 (-60.66%)
Mutual labels:  picasso, glide
Transformers
An Android transformation library providing a variety of image transformations for Coil, Glide, Picasso, and Fresco.
Stars: ✭ 167 (+173.77%)
Mutual labels:  picasso, glide
Scrollgalleryview
🌉 Android image gallery with bottom scroll view
Stars: ✭ 481 (+688.52%)
Mutual labels:  picasso, glide
Glidepalette
Android Lollipop Palette is now easy to use with Glide
Stars: ✭ 1,670 (+2637.7%)
Mutual labels:  picasso, glide
Glidebitmappool
Glide Bitmap Pool is a memory management library for reusing the bitmap memory
Stars: ✭ 544 (+791.8%)
Mutual labels:  bitmap, glide
ContactsApp
Go-Jek Engineering Task Used MVP and Unit Testing Espresso, Mock Webserver and Activity Instrumentation Tests ,RxJava + RxAndroid + Retrofit 2 + OkHttp 3 + Dagger2 + ButterKnife+ Glide + Active Android ORM
Stars: ✭ 21 (-65.57%)
Mutual labels:  glide
OLA Play Music App
Music Streaming App
Stars: ✭ 27 (-55.74%)
Mutual labels:  glide
roove
Dating app based on firebase services and facebook login. MVVM-Kotlin-RxJava-Dagger-Databinding
Stars: ✭ 55 (-9.84%)
Mutual labels:  glide
monsterID
The original MonsterID implementation
Stars: ✭ 56 (-8.2%)
Mutual labels:  avatar-generator
ResDelivery-Hilt-Coroutines-Mvvm-Single-Activity
This is a Sample Single Activity App (Multi Fragments) that uses Dagger-Hilt, Coroutines Flows, Paging 3 & Mvvm Clean Architecture
Stars: ✭ 28 (-54.1%)
Mutual labels:  glide

AvatarImageGenerator

CircleCI Download ](https://bintray.com/skyways/AvatarGenerator/AvatarGenerator/1.4/link)

Generate first letter avatar Image like gmail's contact avatar. It generates an drawable that can be be set to an ImageView.

Installation

Note: Before you can install AvatarImageGenerator you must first add JitPack as a maven repository in settings.gradle

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' }
    }
}

Add the Following to your gradle file.

implementation 'com.github.amoskorir:avatarimagegenerator:VERSION'

Usage

New Builder pattern

 AvatarGenerator.AvatarBuilder(context)
                .setLabel(users[position].login)
                .setAvatarSize(120)
                .setTextSize(30)
                .toSquare()
                .toCircle()
                .setBackgroundColor(Color.RED)
                .build()

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"
    )

Shape

  1. Circle
  2. Square
.toSquare(),
.toCircle()
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].