Imagepicker

完全仿微信的图片选择,并且提供了多种图片加载接口,选择图片后可以旋转,可以裁剪成矩形或圆形,可以配置
Alternatives To Imagepicker
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Imagepicker4,217
3 years ago172apache-2.0Java
完全仿微信的图片选择,并且提供了多种图片加载接口,选择图片后可以旋转,可以裁剪成矩形或圆形,可以配置各种其他的参数
Smartwiki473
6 years ago29apache-2.0JavaScript
因个人精力有限,不在维护此项目,推荐用MinDoc代替
Sword Forum58
4 years ago3JavaScript
仗剑论坛 放服务器上玩了
Taro Cropper50
3 years ago7TypeScript
Taro框架下的跨端图片裁剪组件,目前支持微信小程序端,QQ小程序端, 支付宝小程序端, 字节跳动小程序端, 百度小程序端和H5端
Vueblog32
7 months ago16Vue
Fuxia_liaotian3
6 years agoJava
Imagepicker1
6 years agoapache-2.0Java
Android自定义相册,完全仿微信UI,实现了拍照、图片选择(单选/多选)、 裁剪 、旋转、等功能。
Alternatives To Imagepicker
Select To Compare


Alternative Project Comparisons
Readme

ImagePicker

AndroidUI/

bugmerge request

imageimage imageimage

1.

Android Studio:

	compile 'com.lzy.widget:imagepicker:0.6.1'  //

2.

:,UI,

multiMode /
selectLimit 9
showCamera
crop
style
focusWidth
focusHeight
outPutX
outPutY
isSaveRectangle truefale
imageLoader ImageLoader

3.

demo

  1. com.lzy.imagepicker.loader.ImageLoader ,, Picasso
public class PicassoImageLoader implements ImageLoader {

    @Override
    public void displayImage(Activity activity, String path, ImageView imageView, int width, int height) {
        Picasso.with(activity)//
         .load(Uri.fromFile(new File(path)))//
                .placeholder(R.mipmap.default_image)//
                .error(R.mipmap.default_image)//
                .resize(width, height)//
                .centerInside()//
                .memoryPolicy(MemoryPolicy.NO_CACHE, MemoryPolicy.NO_STORE)//
                .into(imageView);
    }

    @Override
    public void clearMemoryCache() {
        //,
    }
}
  1. Application,,
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_image_picker);
    
    ImagePicker imagePicker = ImagePicker.getInstance();
    imagePicker.setImageLoader(new PicassoImageLoader());   //
    imagePicker.setShowCamera(true);  //
    imagePicker.setCrop(true);        //
    imagePicker.setSaveRectangle(true); //
    imagePicker.setSelectLimit(9);    //
    imagePicker.setStyle(CropImageView.Style.RECTANGLE);  //
    imagePicker.setFocusWidth(800);   //
    imagePicker.setFocusHeight(800);  //
    imagePicker.setOutPutX(1000);//
    imagePicker.setOutPutY(1000);//
}
public void onClick(View v) {
        Intent intent = new Intent(this, ImageGridActivity.class);
        startActivityForResult(intent, IMAGE_PICKER);  
    }
}
Intent intent = new Intent(this, ImageGridActivity.class);
intent.putExtra(ImageGridActivity.EXTRAS_TAKE_PICKERS,true); // 
      startActivityForResult(intent, REQUEST_CODE_SELECT);
  1. onActivityResult,
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    if (resultCode == ImagePicker.RESULT_CODE_ITEMS) {
        if (data != null && requestCode == IMAGE_PICKER) {
            ArrayList<ImageItem> images = (ArrayList<ImageItem>) data.getSerializableExtra(ImagePicker.EXTRA_RESULT_ITEMS);
            MyAdapter adapter = new MyAdapter(images);
            gridView.setAdapter(adapter);
        } else {
            Toast.makeText(this, "", Toast.LENGTH_SHORT).show();
        }
    }
}

V 0.6.1

V 0.6.0

V 0.5.5

  • []
  • []6.0bug

V 0.5.4

  • []
  • []demoImagePickerActivityWxDemoActivity

V 0.5.3

  • []oom
  • []TitleBar

V 0.5.1

  • []
  • [] RecyclerViewGridView
  • [] PicassoPicassoGlide

V 0.5.0

  • [] provider

V 0.4.8

  • [] demobug;

V 0.4.7

  • [] ;
  • [] provider
  • []
  • [] Intent;
  • []
  • []

V 0.3.5

  • []
  • [] Android7.0
  • [] java.lang.RuntimeException: Unable to get provider android.support.v4.content.FileProvider: java.lang.SecurityException: Provider must not be exportedclean

Licenses

 Copyright 2016 jeasonlzy()

 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.
Popular Qq Projects
Popular Crop Projects
Popular Messaging Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Qq
Crop
Image Picker
Imageloader