Skip to content

Commit

Permalink
Merge pull request #17 from Abdelsattar/master
Browse files Browse the repository at this point in the history
add how to use lib with the new functions added
  • Loading branch information
chathuralakmal authored Aug 9, 2017
2 parents 8816d85 + 3259a9f commit 2f061ce
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,12 @@ Show image as a popup on a click event or any event. Simply set the image as dra
### Create instance of the popup class and thats all !!

ImagePopup imagePopup = new ImagePopup(this);


### Example

/** Set popup height, width & background color as you need or just leave default settings **/

final ImagePopup imagePopup = new ImagePopup(this);
final ImagePopup imagePopup = new ImagePopup(this);
imagePopup.setWindowHeight(800); // Optional
imagePopup.setWindowWidth(800); // Optional
imagePopup.setBackgroundColor(Color.BLACK); // Optional
Expand All @@ -56,7 +55,21 @@ Show image as a popup on a click event or any event. Simply set the image as dra
}
});


### Support using Picasso
// supprot string url for image
initiatePopupWithPicasso(imageUrl);

// supprot Uri for image
initiatePopupWithPicasso(imageUri);

// supprot File for image
initiatePopupWithPicasso(imageFile);

### Support using Glide
// supprot string url for image
initiatePopupWithGlide(imageUrl);

# Credits
[Stack Overflow](http://stackoverflow.com)

Expand Down

0 comments on commit 2f061ce

Please sign in to comment.