forked from stfalcon-studio/MultiImageView
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
|