File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,14 @@ Show image as a popup on a click event or any event. Simply set the image as dra
34
34
35
35
### Example
36
36
37
- /** Set popup height, width & background color as you want **/
37
+ /** Set popup height, width & background color as you need or just leave default settings **/
38
38
39
39
final ImagePopup imagePopup = new ImagePopup(this);
40
40
imagePopup.setBackgroundColor(Color.BLACK);
41
41
imagePopup.setWindowWidth(800);
42
42
imagePopup.setWindowHeight(800);
43
+ imagePopup.setHideCloseIcon(true);
44
+ imagePopup.setImageOnClickClose(true);
43
45
44
46
final ImageView imageView = (ImageView) findViewById(R.id.imageView);
45
47
imageView.setOnClickListener(new View.OnClickListener() {
@@ -61,4 +63,4 @@ Contributions are always welcome!
61
63
# License
62
64
The MIT License
63
65
64
- Copyright (c) 2017 Chathura Lakmal [ Google + ] ( https://plus.google .com/u/0/+ChathuraLakmalBest )
66
+ Copyright (c) 2017 [ Chathura Lakmal] ( https://lk.linkedin .com/in/cmac90 )
You can’t perform that action at this time.
0 commit comments