Skip to content

lelloman/android-identicons

Repository files navigation

android-identicons

Simple implementation of Identicons in android, 9 tiles per identicon, each tile has 32 possible shapes (8 for the central one). The library can be added as dependency with gradle, in top level build.gradle:

allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
}

in the module build.gradle

implementation 'com.github.lelloman:android-identicons:v11'

then use one of the 2 View available:

<com.lelloman.identicon.view.ClassicIdenticonView
    android:layout_width="96dp"
    android:layout_height="96dp"
    app:hash="1867167182" />

<com.lelloman.identicon.view.GithubIdenticonView
    android:layout_width="96dp"
    android:layout_height="96dp"
    app:hash="654984321" />

identicons

identicons

they can also make good textures for hum carpets, or tiles for the bathroom

carpet1 carpet2 carpet3

About

Simple implementation of Identicons in android

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages