Skip to content

Commit 498e2cd

Browse files
authored
updated read me
1 parent 7b42f9f commit 498e2cd

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
11
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,
2+
3+
4+
to create the image view in xml
5+
6+
<com.stfalcon.multiimageview.MultiImageView
7+
android:id="@+id/iv"
8+
android:layout_width="100dp"
9+
android:layout_height="100dp"
10+
app:shape="rectangle"
11+
app:corner_radius="60" />
12+
13+
![Image description](https://github.com/martipello/MultiImageView/blob/master/sample/src/main/res/drawable/Screenshot_1582383274.png)
14+
15+
16+
![Image description](https://github.com/martipello/MultiImageView/blob/master/sample/src/main/res/drawable/Screenshot_1582383283.png)
17+
18+
19+
to add an image use
20+
21+
multiImageView.addImage(BitmapFactory.decodeResource(getResources(), R.drawable.avatar1));
22+
23+
to clear images use
24+
25+
multiImageView.clear();
26+
27+
the corner radius only applys to the rectangle shape other wise it will be ignored you can set this in xml or programmatically
28+
29+
![Image description](https://github.com/martipello/MultiImageView/blob/master/sample/src/main/res/drawable/Screenshot_1582383289.png)
30+

0 commit comments

Comments
 (0)