All Projects → donglua → Photopicker

donglua / Photopicker

Licence: apache-2.0
[DEPRECATED] Image Picker like Wechat

Programming Languages

java
68154 projects - #9 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to Photopicker

ProPicker
ProPicker is a file picker (image, video, file) library for Android. It helps you to pick any file and return the result in a convenient way
Stars: ✭ 25 (-99.12%)
Mutual labels:  photopicker, imagepicker
ZLPhotoBrowser-objc
(ZLPhotoBrowser oc 版本)轻量级照片选择框架,支持预览/相册内拍照及录视频、拖拽/滑动选择,编辑裁剪图片/视频,支持多语言国际化等功能
Stars: ✭ 54 (-98.11%)
Mutual labels:  imagepicker
SSImagePicker
Easy to use and configurable library to Pick an image from the Gallery or Capture an image using a Camera... 📸
Stars: ✭ 227 (-92.04%)
Mutual labels:  imagepicker
ZYimagePickerPodDemo
微信选择图片 微信照片选择器 微信照片浏览
Stars: ✭ 33 (-98.84%)
Mutual labels:  imagepicker
RAImagePicker
📸 iMessage-like, Image Picker Controller Provides custom features.
Stars: ✭ 14 (-99.51%)
Mutual labels:  imagepicker
WAProfileImage
WAProfileImage - A library for Android for choosing and editing profile image like WhatsApp
Stars: ✭ 29 (-98.98%)
Mutual labels:  imagepicker
Matisse
基于知乎Matisse增强,一行代码实现图片/视频选择,裁剪,微信同款视频录制和拍照,无需权限申请!
Stars: ✭ 174 (-93.9%)
Mutual labels:  imagepicker
Filepicker
🔥🔥🔥Android文件、图片选择器,可按文件夹查找,文件类型查找,支持自定义相机
Stars: ✭ 265 (-90.71%)
Mutual labels:  imagepicker
ImagePicker
Android image picker
Stars: ✭ 17 (-99.4%)
Mutual labels:  imagepicker
AttachmentInput
AttachmentInput is image picker keyboard.
Stars: ✭ 30 (-98.95%)
Mutual labels:  photopicker
spartan-multi-image-picker
A Jquery multi image picker with preview (and madness)
Stars: ✭ 15 (-99.47%)
Mutual labels:  imagepicker
PhotoSelectAndCrop
This package integrates a UIImagePickerController into a SwiftUI app. Obtain 1) a copy of the original image, 2) a scaled and / or cropped version of it, 3) a CGFloat and 4) CGPoint. The CGFloat and CGPoint represent the scale and position of the original image used to make the processed version.
Stars: ✭ 57 (-98%)
Mutual labels:  imagepicker
XGImagePickerController
iOS相册图片/视频选择器
Stars: ✭ 32 (-98.88%)
Mutual labels:  imagepicker
nativescript-imagepicker
Imagepicker plugin supporting both single and multiple selection.
Stars: ✭ 103 (-96.39%)
Mutual labels:  imagepicker
ImagePicker-OLX
No description or website provided.
Stars: ✭ 77 (-97.3%)
Mutual labels:  imagepicker
Zyimagepickerandbrower
2018iOS微信相册,朋友圈imagePicker UI仿,微信照片选择器 多选序号
Stars: ✭ 210 (-92.64%)
Mutual labels:  imagepicker
MJMediaPicker
A Custom Class to select media from camera ,video or photo library by just adding a single file
Stars: ✭ 15 (-99.47%)
Mutual labels:  imagepicker
Bottomsheet Imagepicker
Modern image picker for Android
Stars: ✭ 267 (-90.64%)
Mutual labels:  imagepicker
ImagePickerView
🌇 PHPickerViewController / UIImagePickerController for SwiftUI
Stars: ✭ 18 (-99.37%)
Mutual labels:  imagepicker
ConvenientImagePicker
🏞🌅🌄🎇🌇🏙🌃🌉🌁the new iOS image picker. Beautiful, delicate, and customizable.
Stars: ✭ 44 (-98.46%)
Mutual labels:  imagepicker

PhotoPicker

CircleCI Build Status Android Arsenal Download API


DEPRECATED

PhotoPicker is deprecated.

  • 本项目已废弃,仍可使用,但不推荐;推荐使用 zhihu/Matisse
  • 本项目建于2015年初,是最早的图片选择库之一。由于目前同类开源项目很多,也做得更完善,加上迁移成本低,本项目没有继续维护的必要,感谢大家支持。

Example

Get it on Google Play


Usage

Gradle

dependencies {
    compile 'me.iwf.photopicker:PhotoPicker:0.9.12@aar'
    
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.android.support:recyclerview-v7:23.4.0'
    compile 'com.android.support:design:23.4.0'
    compile 'com.github.bumptech.glide:glide:4.1.1'
}
  • appcompat-v7version >= 23.0.0

eclipse

[GO HOME

Pick Photo

PhotoPicker.builder()
    .setPhotoCount(9)
    .setShowCamera(true)
    .setShowGif(true)
    .setPreviewEnabled(false)
    .start(this, PhotoPicker.REQUEST_CODE);

Preview Photo

ArrayList<String> photoPaths = ...;

PhotoPreview.builder()
    .setPhotos(selectedPhotos)
    .setCurrentItem(position)
    .setShowDeleteButton(false)
    .start(MainActivity.this);

onActivityResult

@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) {
  super.onActivityResult(requestCode, resultCode, data);

  if (resultCode == RESULT_OK && requestCode == PhotoPicker.REQUEST_CODE) {
    if (data != null) {
      ArrayList<String> photos = 
          data.getStringArrayListExtra(PhotoPicker.KEY_SELECTED_PHOTOS);
    }
  }
}

manifest

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    >
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.CAMERA" />
  <application
    ...
    >
    ...
    
    <activity android:name="me.iwf.photopicker.PhotoPickerActivity"
      android:theme="@style/Theme.AppCompat.NoActionBar" 
       />

    <activity android:name="me.iwf.photopicker.PhotoPagerActivity"
      android:theme="@style/Theme.AppCompat.NoActionBar"/>
    
  </application>
</manifest>

Custom style

<style name="actionBarTheme" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
  <item name="android:textColorPrimary">@android:color/primary_text_light</item>
  <item name="actionBarSize">@dimen/actionBarSize</item>
</style>

<style name="customTheme" parent="Theme.AppCompat.Light.NoActionBar">
  <item name="actionBarTheme">@style/actionBarTheme</item>
  <item name="colorPrimary">#FFA500</item>
  <item name="actionBarSize">@dimen/actionBarSize</item>
  <item name="colorPrimaryDark">#CCa500</item>
</style>

Proguard

# Glide
-keep public class * implements com.bumptech.glide.module.GlideModule
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
    **[] $VALUES;
    public *;
}
# support-v7-appcompat
-keep public class android.support.v7.widget.** { *; }
-keep public class android.support.v7.internal.widget.** { *; }
-keep public class android.support.v7.internal.view.menu.** { *; }
-keep public class * extends android.support.v4.view.ActionProvider {
    public <init>(android.content.Context);
}
# support-design
-dontwarn android.support.design.**
-keep class android.support.design.** { *; }
-keep interface android.support.design.** { *; }
-keep public class android.support.design.R$* { *; }

License

Copyright 2015 Huang Donglu

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].