Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
martinseal committed Feb 22, 2020
2 parents e52562f + 3c97793 commit a3ce234
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,30 @@
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](https://github.com/martipello/MultiImageView/blob/master/sample/src/main/res/drawable/Screenshot_1582383274.png)

![Image description](https://github.com/martipello/MultiImageView/blob/master/sample/src/main/res/drawable/Screenshot_1582383283.png)


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](https://github.com/martipello/MultiImageView/blob/master/sample/src/main/res/drawable/Screenshot_1582383289.png)

0 comments on commit a3ce234

Please sign in to comment.