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" />
they can also make good textures for hum carpets, or tiles for the bathroom