TelegramGallery
TangXiaoLv
1195
Visit GitHub RepoImage Pickers

TelegramGallery

English | 中文

Fast,efficiently,low memory selector of album,extract from 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

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    
    <activity android:name="com.tangxiaolv.telegramgallery.GalleryActivity" />

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<String> photos = (List<String>) data.getSerializableExtra(GalleryActivity.PHOTOS);
    
    //list of videos of seleced
    List<String> vides = (List<String>) data.getSerializableExtra(GalleryActivity.VIDEOS);
}

License

GPL-2.0

Become a better Android Developer
Millions of developers are learning at MindOrks

Online Training Program

Featured Blogs

Our Team

MindOrks is Certainly one of the best online blog to stay on top of all the Android development news, coding and design patterns. Finally a blog I can count on to keep myself updated with latest and greatest things happening in Android world.

Vipul Shah
Android Developer
Microsoft

Become Pro in Android by watching videos

OUR LEARNERS WORK AT