# imagePicker
an imagePicker for android ,with it,you can select single or multiple image,crop it for avatar,take a photo and use it,preview and zoom etc.
![screenshot](static/Screenshot1.png)-
![screenshot](static/Screenshot2.png)-
![screenshot](static/Screenshot3.png)-
![screenshot](static/Screenshot4.png)-
![screenshot](static/Screenshot5.png)
## Features
* choosing single or multi image with preview
* crop a image for avatar simply
* custom new version easily.
* easily use
## Usage
just 1 minutes using it,and make your own version as you need.
### Gradle
``` groovy
dependencies {
compile project(':imagepickerModule')
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3' //optional
compile 'com.github.bumptech.glide:glide:3.6.1' //optional
compile 'com.squareup.picasso:picasso:2.4.0' //optional
}
```
``` java
//single select
AndroidImagePicker.getInstance().pickSingle(MainActivity.this, isShowCamera, new AndroidImagePicker.OnImagePickCompleteListener() {
@Override
public void onImagePickComplete(List<ImageItem> items) {
if(items != null && items.size() > 0){
LogUtil.i(TAG,"=====selected:"+items.get(0).path);
mAdapter.clear();
mAdapter.addAll(items);
}
}
});
//multi select
AndroidImagePicker.getInstance().pickMulti(MainActivity.this, isShowCamera, new AndroidImagePicker.OnImagePickCompleteListener() {
@Override
public void onImagePickComplete(List<ImageItem> items) {
if(items != null && items.size() > 0){
LogUtil.i(TAG,"=====selected:"+items.get(0).path);
mAdapter.clear();
mAdapter.addAll(items);
}
}
});
//select and crop avatar
AndroidImagePicker.getInstance().pickAndCrop(MainActivity.this, true, 120, new AndroidImagePicker.OnImageCropCompleteListener() {
@Override
public void onImageCropComplete(Bitmap bmp, float ratio) {
LogUtil.i(TAG,"=====onImageCropComplete (get bitmap="+bmp.toString());
ivCrop.setVisibility(View.VISIBLE);
ivCrop.setImageBitmap(bmp);
}
});
```
### Eclipse
```
read my code and do it yourself.
```
## Licence
``` text
Copyright (C) 2016 1feng (easonline7@gmail.com)
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.
没有合适的资源?快使用搜索试试~ 我知道了~
这是一个Android游戏合集,包含6个游戏:五子棋、中国象棋、国际象棋、黑白棋、军棋、走月光.zip
共859个文件
xml:327个
java:255个
png:203个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 113 浏览量
2024-05-12
15:11:14
上传
评论
收藏 8.96MB ZIP 举报
温馨提示
【项目资源】:包含前端、后端、移动开发、操作系统、人工智能、物联网、信息化管理、数据库、硬件开发、大数据、课程资源、音视频、网站开发等各种技术项目的源码。包括STM32、ESP8266、PHP、QT、Linux、iOS、C++、Java、python、web、C#、EDA、proteus、RTOS等项目的源码。 【技术】 Java、Python、Node.js、Spring Boot、Django、Express、MySQL、PostgreSQL、MongoDB、React、Angular、Vue、Bootstrap、Material-UI、Redis、Docker、Kubernetes
资源推荐
资源详情
资源评论
收起资源包目录
这是一个Android游戏合集,包含6个游戏:五子棋、中国象棋、国际象棋、黑白棋、军棋、走月光.zip (859个子文件)
gradlew.bat 2KB
.classpath 466B
icon_022.gif 85KB
icon_018.gif 77KB
icon_007.gif 67KB
icon_027.gif 62KB
icon_020.gif 56KB
icon_019.gif 46KB
icon_012.gif 44KB
icon_021.gif 43KB
icon_040.gif 42KB
icon_010.gif 42KB
icon_013.gif 26KB
icon_030.gif 26KB
icon_029.gif 23KB
icon_035.gif 21KB
icon_002.gif 16KB
icon_024.gif 11KB
.gitignore 118B
.gitignore 7B
.gitignore 7B
.gitignore 7B
.gitignore 7B
.gitignore 7B
.gitignore 7B
.gitignore 7B
.gitignore 7B
.gitignore 7B
build.gradle 3KB
build.gradle 2KB
build.gradle 2KB
build.gradle 2KB
build.gradle 2KB
build.gradle 2KB
build.gradle 2KB
build.gradle 1KB
build.gradle 1023B
build.gradle 498B
settings.gradle 163B
gradlew 5KB
hyphenatechat_3.2.1.jar 350KB
org.apache.http.legacy.jar 296KB
GDTUnionSDK.4.9.535.min.jar 230KB
gradle-wrapper.jar 52KB
bolts-tasks-1.4.0.jar 37KB
DemoHelper.java 43KB
TouchImageView.java 41KB
AArmyView.java 39KB
FArmyView.java 34KB
MArmyView.java 34KB
GobangAi.java 30KB
Bmob.java 30KB
EaseChatFragment.java 29KB
MoonView.java 27KB
BaseOnlineModeAty.java 23KB
CNChessView.java 22KB
ImagesGridFragment.java 21KB
BaseInviteModeAty.java 21KB
ChessView.java 20KB
ReversiView.java 20KB
UserProfileActivity.java 19KB
AndroidImagePicker.java 17KB
PermissionsManager.java 16KB
LayoutArmyView.java 16KB
GroupDetailsActivity.java 14KB
MainActivity.java 14KB
EaseNotifier.java 14KB
FlowRadioGroup.java 14KB
ConversationsActivity.java 14KB
SuperImageView.java 13KB
GameAdapter.java 13KB
EaseChatRow.java 12KB
LoginActivity.java 12KB
EaseConversationAdapter.java 11KB
EaseConversationListFragment.java 11KB
MDEditDialog.java 11KB
GobangView.java 11KB
Evaluation.java 11KB
NormalAlertDialog.java 10KB
EaseEmojiconPagerView.java 10KB
EaseMessageAdapter.java 10KB
NormalSelectionDialog.java 9KB
EaseImageView.java 9KB
EaseUI.java 9KB
EaseContactAdapter.java 9KB
ImagePreviewFragment.java 8KB
DemoModel.java 8KB
EaseAtMessageHelper.java 8KB
PreferenceManager.java 8KB
MDAlertDialog.java 8KB
ChatFragment.java 7KB
EaseChatInputMenu.java 7KB
BaseGameMsgAty.java 7KB
MoonChessUtil.java 7KB
ArmyChessUtil.java 7KB
SendMsgFragment.java 7KB
EaseCommonUtils.java 7KB
PermissionsResultAction.java 7KB
Algorithm.java 7KB
AILevelDialog.java 7KB
共 859 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9
资源评论
枫蜜柚子茶
- 粉丝: 8979
- 资源: 5351
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功