Coder Social home page Coder Social logo

wqgallery's Introduction

#android微信样式相册选择器

Image text

Image text

Image text ##怎么使用?

下载工程及mode compile project(':photogallery') ####1.支持单选模式 #####2.支持多选模式 ####下面是调用选择器

Intent intent=new Intent(MainActivity.this, MediaChoseActivity.class);
//chose_mode选择模式 0单选 1多选
intent.putExtra("chose_mode",0);
//最多支持选择多少张
intent.putExtra("max_chose_count",6);
//是否剪裁图片(只有单选模式才有剪裁)
intent.putExtra("crop",true);
//输出剪裁图片的宽度
intent.putExtra("crop_image_w",720);
//输出剪裁图片的高度
intent.putExtra("crop_image_h",720);
startActivityForResult(intent, REQUEST_IMAGE);

####在onActivityResult中获取选择的图片路径列表

ArrayList<String>paths=data.getStringArrayListExtra("data");

###当前版本1.0.1 下个版本能够在gradle引入photogallery库 1.0.1 新增单选截图模式

##Developed By #####[email protected] ##License

Copyright 2013 Andreas Stuetz

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

wqgallery's People

Contributors

wqandroid avatar

Watchers

承影 avatar  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.