martipello / MultiImageView

Android library to display a few images in one ImageView like avatar of group chat. Made by Stfalcon

Home Page:http://stfalcon.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I forked this library to carry on it's development, I've extended the examples to include a recycler view example, the shape and corner radius can now be set from xml,

to create the image view in xml

<com.stfalcon.multiimageview.MultiImageView
    android:id="@+id/iv"
    android:layout_width="100dp"
    android:layout_height="100dp"
    app:shape="rectangle"
    app:corner_radius="60" />

Image description

Image description

to add an image use

multiImageView.addImage(BitmapFactory.decodeResource(getResources(), R.drawable.avatar1));

to clear images use

multiImageView.clear();

the corner radius only applys to the rectangle shape other wise it will be ignored you can set this in xml or programmatically

Image description

About

Android library to display a few images in one ImageView like avatar of group chat. Made by Stfalcon

http://stfalcon.com


Languages

Language:Kotlin 89.7%Language:Java 10.3%