GithubHelp home page GithubHelp logo

multiphotopicker's Introduction

#MultiPhotoPicker

Android仿微信多图片选择器

bug: 预览加载大图容易内存溢出。

图片加载暂使用subsampling-scale-image-view

使用方法:如何使用

##ScreenShots

Alt text Alt text Alt text Alt text

##如何使用 将工程clone在你的工作目录中,并导入至项目工程中。
###启动选择页面 ####返回一张图片

Intent intent = new Intent();
intent.setAction("funol.intent.action.PICK_PHOTO");
startActivityForResult(intent, REQUEST_CODE);

####返回多张图片

Intent intent = new Intent();
intent.setAction("funol.intent.action.PICK_MULTI_PHOTO");
startActivityForResult(intent, REQUEST_CODE);

####返回指定最大张数图片 如:返回最多20张图片

Intent intent = new Intent();
intent.setData(Uri.parse("pick://images.funol.net/number/20"));
startActivityForResult(intent, REQUEST_CODE);

###接收返回的图片

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
	if (resultCode == RESULT_OK && requestCode == REQUEST_CODE) {
		// 取出图片的Uri
        List<Uri> uris = data.getParcelableArrayListExtra("photos");
    }
}

multiphotopicker's People

Contributors

4332weizi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.