MultiImagePicker


Source link: https://github.com/yazeed44/MultiImagePicker

#Notice -Picker.Builder(Context,Listener) has been replaced with (Context,Listener,themeResId) and it's highely recommended to use the new constructor

- onPickedSuccessfully(String[] paths) has been replaced with onPickedSuccessfully(ArrayList<ImageEntry> images)

-The sample in google play and screenshots are out-of-date , will update them on 1.2 or 1.3 version

MultiImagePicker

A library to pick multi images With features like setting limit and UI that goes nicely with your app theme

Sample App (On playstore) : https://play.google.com/store/apps/details?id=net.yazeed44.imagepicker.sample

This library is built-in gallery to pick multiple images or capture new photos , and retrieve the path in the code

This library is inspired by Telegram image picker

:app is the sample application

:imagepicker is the library source code

Gradle Dependency (jCenter)

Just add the dependency to your build.gradle file

compile 'net.yazeed44.imagepicker:imagepicker:1.3.1'

Also don't forget to add cwac-cam2 repository by declaring this in your build.gradle

repositories {

  maven {

url "https://repo.commonsware.com.s3.amazonaws.com"
  
}
 
}
 

If jCenter is Having Issues (the library can't be resolved)

Add this to your app's build.gradle file:

repositories {

  maven {
 url 'https://dl.bintray.com/yazeed44/maven' 
}
 
}

Getting started

It's easy

-Define a style that uses a toolbar instead of actionbar , if you have already has a style who does that skip this step

<style name="MIP_theme" parent="AppTheme">

<item name="windowActionBar">false</item>
  <item name="windowNoTitle">true</item>  </style>
private void pickImages(){

 //You can change many settings in builder like limit , Pick mode and colors
  new Picker.Builder(this,new MyPickListener(),R.style.MIP_theme)

.build()

.startActivity();
  
}

private class MyPickListener implements Picker.PickListener {

@Override
  public void onPickedSuccessfully(final ArrayList<ImageEntry> images) {

doSomethingWithImages(images);

  
}

@Override
  public void onCancel() {

//User canceled the pick activity
  
}
 
}

Make Photo/Video capture optional

In order to capture photos and videos the library depends on cwac-cam2 library. If you just want to pick images from gallery you can disable the capture feature by excluding the cwac-cam2 library from your module:

compile('net.yazeed44.imagepicker:imagepicker:1.3.1') {

  exclude module: 'cam2' 
}
 // or configurations.compile.exclude module: 'cam2'

##Contribution

Questions

If you have any questions regarding MultiImagePicker,create an Issue

Feature request

To create a new Feature request, open an issue

I'll try to answer as soon as I find the time.

Pull requests welcome

Feel free to contribute to MultiImagePicker.

Either you found a bug or have created a new and awesome feature, just create a pull request.

Discuss

Join in the conversation , Join us in telegram.

Resources

This is a simple extensible android library that allows you to use an image for a loading indication. There are a couple of build-in indicators such as

  • BlurIndicator
  • ColorFillerIndicator
  • PixelizeIndicator
  • CircularIndicator
  • AlphaIndicator
  • RandomBlockIndicator

Android library to display month, list calendar within the app. Can be use as date picker or fully ready calendar.

IncDec library will allow you to perform increment and decrement operation. As it supports single click and long press, it enhances UX solving the delay problem in the typical number picker.

Download manager via okhttp.

This is amazing android library to add tab-digits with an old -fashion transition as old clock does.

Cinder helps you write concise and declarative code with Android’s data binding Observable classes.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes