Skip to content

Commit 686e974

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 21059ac + 09be81e commit 686e974

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
Show image as a popup on a click event or any event. Simply set the image as drawable and thats it!!!. And also you can set width, height & background color as you want.
44

5+
#### Version 1.0.7 Highly Recommended
56

67
# Preview
78
![Demo Preview](preview.gif? "Demo Preview")
@@ -20,7 +21,7 @@ Show image as a popup on a click event or any event. Simply set the image as dra
2021
#### Step 2. Add the dependency
2122

2223
dependencies {
23-
compile 'com.github.chathuralakmal:AndroidImagePopup:1.0.6'
24+
compile 'com.github.chathuralakmal:AndroidImagePopup:1.0.7'
2425
}
2526

2627

@@ -37,11 +38,9 @@ Show image as a popup on a click event or any event. Simply set the image as dra
3738
/** Set popup height, width & background color as you need or just leave default settings **/
3839

3940
final ImagePopup imagePopup = new ImagePopup(this);
40-
imagePopup.setBackgroundColor(Color.BLACK);
41-
imagePopup.setWindowWidth(800);
42-
imagePopup.setWindowHeight(800);
43-
imagePopup.setHideCloseIcon(true);
44-
imagePopup.setImageOnClickClose(true);
41+
imagePopup.setBackgroundColor(Color.BLACK); // Optional
42+
imagePopup.setHideCloseIcon(true); // Optional
43+
imagePopup.setImageOnClickClose(true); // Optional
4544

4645
final ImageView imageView = (ImageView) findViewById(R.id.imageView);
4746
imageView.setOnClickListener(new View.OnClickListener() {

0 commit comments

Comments
 (0)