Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vansikrishna/Multimager
Multi Image Picker and Multi Image Capture Library
https://github.com/vansikrishna/Multimager
Last synced: 3 months ago
JSON representation
Multi Image Picker and Multi Image Capture Library
- Host: GitHub
- URL: https://github.com/vansikrishna/Multimager
- Owner: vansikrishna
- Created: 2017-02-09T10:43:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-14T22:39:25.000Z (about 7 years ago)
- Last Synced: 2024-06-16T05:36:18.412Z (5 months ago)
- Language: Java
- Homepage:
- Size: 14.5 MB
- Stars: 73
- Watchers: 3
- Forks: 22
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-android-ui - Multimager - 多图片选择器和多图片捕获 (图片)
README
[![](https://jitpack.io/v/vansikrishna/Multimager.svg)](https://jitpack.io/#vansikrishna/Multimager) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Multimager-orange.svg?style=flat-square)](https://android-arsenal.com/details/1/5241)
# Multimager
Multi Image Picker and Multi Image Capture Demo app
This is a sample demonstration for multiple images capture as well as multiple image picker. UX/UI can be styled with any color with relativity to Material Design. The demo shows tinting multiple views based on theme color!!# Library
Add the jitpack repo to your repositories section in root level build.gradleallprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}Add the dependencies to the app level build.gradle
dependencies {
compile 'com.github.vansikrishna:Multimager:1.0.8'
}# Screenshots
![](https://github.com/vansikrishna/Multimager/blob/master/screenshots/demo.gif)
![](https://github.com/vansikrishna/Multimager/blob/master/screenshots/3%20-%20small.png)
![](https://github.com/vansikrishna/Multimager/blob/master/screenshots/9%20-%20small.png)
![](https://github.com/vansikrishna/Multimager/blob/master/screenshots/11%20-%20small.png)# Create intent for multi-selection
Intent intent = new Intent(this, GalleryActivity.class);
Params params = new Params();
params.setCaptureLimit(10);
params.setPickerLimit(10);
params.setToolbarColor(selectedColor);
params.setActionButtonColor(selectedColor);
params.setButtonTextColor(selectedColor);
intent.putExtra(Constants.KEY_PARAMS, params);
startActivityForResult(intent, Constants.TYPE_MULTI_PICKER);
# Create intent for multi-capture
Intent intent = new Intent(this, MultiCameraActivity.class);
Params params = new Params();
params.setCaptureLimit(10);
params.setToolbarColor(selectedColor);
params.setActionButtonColor(selectedColor);
params.setButtonTextColor(selectedColor);
intent.putExtra(Constants.KEY_PARAMS, params);
startActivityForResult(intent, Constants.TYPE_MULTI_CAPTURE);# Get the result in the `onActivityResult()` callback
protected void onActivityResult(int requestCode, int resultCode, Intent intent) {
super.onActivityResult(requestCode, resultCode, intent);
if (resultCode != RESULT_OK) {
return;
}
switch (requestCode) {
case Constants.TYPE_MULTI_CAPTURE:
ArrayList imagesList = intent.getParcelableArrayListExtra(Constants.KEY_BUNDLE_LIST);
break;
case Constants.TYPE_MULTI_PICKER:
ArrayList imagesList = intent.getParcelableArrayListExtra(Constants.KEY_BUNDLE_LIST);
break;
}
}# Default style
The default style is green, but it can be modified with any set colors. One for normal state and another for pressed state.
```setViewsColorStateList()``` in Utils class will do the job.