Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/TangXiaoLv/TelegramGallery

world level Gallery , from Telegram,Photo album selector,QQ style
https://github.com/TangXiaoLv/TelegramGallery

album gallery photo photo-selector picture qqstyle telegram

Last synced: 6 days ago
JSON representation

world level Gallery , from Telegram,Photo album selector,QQ style

Awesome Lists containing this project

README

        

# TelegramGallery
English | [中文](https://github.com/TangXiaoLv/TelegramGallery/blob/master/README_CN.md)

Fast,efficiently,low memory selector of album,extract from [Telegram](https://github.com/DrKLO/Telegram). Support singleSelection, Multiselect, photo preview,scalable ,sliding to quit preview,QQ pick style.

## 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);

//process result
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
//list of photos of seleced
List photos = (List) data.getSerializableExtra(GalleryActivity.PHOTOS);

//list of videos of seleced
List vides = (List) data.getSerializableExtra(GalleryActivity.VIDEOS);
}
```
## License
GPL-2.0