CNCoderX / Photopicker
简洁、高效的Android图片选择库,支持图片压缩、裁剪,支持多图选择
Stars: ✭ 138
Programming Languages
java
68154 projects - #9 most used programming language
Labels
Projects that are alternatives of or similar to Photopicker
Prismasimpleimagepicker
This is a copy of the Prisma APP. Reproduce Prisma custom camera, image picker and picture editor
Stars: ✭ 594 (+330.43%)
Mutual labels: image-picker
Gallerypicker
Gallery Picker allows you to design a custom gallery for image/ video picker in your android projects.
Stars: ✭ 76 (-44.93%)
Mutual labels: image-picker
Ypimagepicker
📸 Instagram-like image picker & filters for iOS
Stars: ✭ 3,661 (+2552.9%)
Mutual labels: image-picker
React Native Syan Image Picker
React-Native 多图片选择 支持裁剪 压缩
Stars: ✭ 556 (+302.9%)
Mutual labels: image-picker
ChatViewController
💬 ChatViewController, ChatBar, ImagePicker like Slack Application. Message App written in Swift
Stars: ✭ 47 (-65.94%)
Mutual labels: image-picker
Photopicker
Swift3.0基于PhotoKit高仿iOS微信图片选择器(photo picker like WeChat by swift)
Stars: ✭ 105 (-23.91%)
Mutual labels: image-picker
Alerts And Pickers
Advanced usage of UIAlertController and pickers based on it: Telegram, Contacts, Location, PhotoLibrary, Country, Phone Code, Currency, Date...
Stars: ✭ 5,267 (+3716.67%)
Mutual labels: image-picker
Insgallery
📸 Instagram-like image picker for Android (一款 UI 炫酷高仿 Instagram 的图片、视频选择器)
Stars: ✭ 409 (+196.38%)
Mutual labels: image-picker
React Native Image Picker
🌄 A React Native module that allows you to use native UI to select media from the device library or directly from the camera.
Stars: ✭ 7,431 (+5284.78%)
Mutual labels: image-picker
Chiliphotopicker
Photo picker library for android. Let's you pick photos directly from files, or navigate to camera or gallery.
Stars: ✭ 333 (+141.3%)
Mutual labels: image-picker
Mtimagepicker
A WeiXin like multiple imagepicker and video picker using either PhotoKit or AssetsLibrary
Stars: ✭ 79 (-42.75%)
Mutual labels: image-picker
Abra
Your next favorite image and video picker from Gallery for Swift
Stars: ✭ 19 (-86.23%)
Mutual labels: image-picker
Imagepicker
📸Image Picker for Android, Pick an image from Gallery or Capture a new image with Camera
Stars: ✭ 623 (+351.45%)
Mutual labels: image-picker
Image Picker
An easy to use, highly configurable image picker for your chat application.
Stars: ✭ 94 (-31.88%)
Mutual labels: image-picker
Weex Image Crop Picker
iOS/Android image picker with support for camera, configurable compression, multiple images and cropping porting from
Stars: ✭ 42 (-69.57%)
Mutual labels: image-picker
PhotoPicker
添加依赖关系
compile 'com.github.CNCoderX:PhotoPicker:1.0.1'
使用方法
添加权限
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
在Android7.0上添加FileProvider
// 在AndroidManifest.xml中添加
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
// 新建xml/file_paths.xml
<?xml version="1.0" encoding="utf-8"?>
<paths>
<external-path name="external" path="DCIM"/>
</paths>
注册activity
<activity
android:name="com.cncoderx.photopicker.ui.GalleryActivity"
android:theme="@style/PhotoPickerTheme"
android:screenOrientation="portrait"/>
<activity
android:name="com.cncoderx.photopicker.ui.CropPhotoActivity"
android:theme="@style/PhotoPickerTheme"
android:screenOrientation="portrait"/>
在代码中添加
new PhotoPicker.Builder(this)
.setMaxCount(maxCount)
.setAspect(1, 1)
.hideCamera(true)
.circleCrop(true)
.create(1);
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (resultCode == RESULT_OK) {
ArrayList<IImage> images = data.getParcelableArrayListExtra(PhotoPicker.EXTRA_DATA);
......
}
}
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].