# TelegramGallery
中文 | [English](https://github.com/TangXiaoLv/TelegramGallery)
快速,高效,低耗相册选择器,抽取自[Telegram](https://github.com/DrKLO/Telegram),支持单选,多选,预览,缩放,滑动取消预览,QQ选择特性
## Getting Started
### Gradle
```
dependencies {
compile 'com.library.tangxiaolv:telegramgallery:1.0.5'
}
```
### configuration
```
```
### Usage
```
//打开相册
//open album
GalleryConfig config = new GalleryConfig.Build()
.limitPickPhoto(3)
.singlePhoto(false)
.hintOfPick("this is pick hint")
.filterMimeTypes(new String[]{"image/jpeg"})
.build();
GalleryActivity.openActivity(MainActivity.this, reqCode, config);
//接受返回值
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
//照片路径集合返回值
List photos = (List) data.getSerializableExtra(GalleryActivity.PHOTOS);
//视频路径集合返回值
List vides = (List) data.getSerializableExtra(GalleryActivity.VIDEOS);
}
```
## License
GPL-2.0