帮酷LOGO
  • 显示原文与译文双语对照的内容
world level Gallery , from Telegram ,QQ 相册风格,相册选择器

  • 源代码名称:TelegramGallery
  • 源代码网址:http://www.github.com/TangXiaoLv/TelegramGallery
  • TelegramGallery源代码文档
  • TelegramGallery源代码下载
  • Git URL:
    git://www.github.com/TangXiaoLv/TelegramGallery.git
  • Git Clone代码到本地:
    git clone http://www.github.com/TangXiaoLv/TelegramGallery
  • Subversion代码到本地:
    $ svn co --depth empty http://www.github.com/TangXiaoLv/TelegramGallery
    Checked out revision 1.
    $ cd repo
    $ svn up trunk
  • 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




    Copyright © 2011 HelpLib All rights reserved.    知识分享协议 京ICP备05059198号-3  |  如果智培  |  酷兔英语