Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ibosong committed Apr 6, 2017
2 parents 95c7f91 + dd8c045 commit 83ade90
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# CommentGallery

This is an Android sample for demonstrating some common scenarios, such as a grid with images and a large image viewer
which supports zoom-in and zoom-out. Please feel free to let me know if your have any questions.

![](https://github.com/ibosong/CommentGallery/blob/master/CommentGallery.gif)

## Gradle Dependency

Step 1. Add the JitPack repository to your build file:
```
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
Step 2. Add the dependency
```
dependencies {
compile 'com.github.ibosong.CommentGallery:frescozoomablelib:1.0'
compile 'com.github.ibosong.CommentGallery:commentgallerylib:1.0'
}
```

## Usage

1. Usage of LargeImageGallery

- Add LargeImageGallery to your xml file.

```
<com.bosong.commentgallerylib.LargeImageGallery
android:id="@+id/image_gallery"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
```


- Set image urls with `setData(List<String> urls)` method.
That's all. There are also some listeners your can set:

```
mLargeImageGallery.setOnImageSelectedListener(this);
mLargeImageGallery.setOnItemClickListener(this);
```


2. Usage of CommentImageGrid

(Editing...)

0 comments on commit 83ade90

Please sign in to comment.