Skip to content

Repository files navigation

AndroidPicturePicker

##Thanks for :
Laevatein:Photo image selection activity set library. Currently under development.
Picasso:A powerful image downloading and caching library for Android
Glide:An image loading and caching library for Android focused on smooth scrolling
Android-Universal-Image-Loader:Powerful and flexible library for loading, caching and displaying images on Android.

##Screen Shot gallerygallery

Usage

Call photo image selection activity by the following code snipet.

publicvoidonClickButton(Viewview) {
Picker.from(this)
.count(3)
.enableCamera(true)
.setEngine(newGlideEngine())
.forResult(REQUEST_CODE_CHOOSE);
}

You can use different Image Loader, Picker provide 3 default Loader Engine:
1.GlideEngine
2.PicassoEngine
3.ImageLoaderEngine

or you can use custom engine , just like

publicstaticclassCustomEngineimplementsLoadEngine {
@OverridepublicvoiddisplayImage(Stringpath, ImageViewimageView) {
Log.i("picture", path);
}
@OverridepublicvoiddisplayCameraItem(ImageViewimageView) {
}
@Overridepublicvoidscrolling(GridViewview) {
}
@OverridepublicintdescribeContents() {
return0;
}
@OverridepublicvoidwriteToParcel(Parceldest, intflags) {
}
publicCustomEngine() {
}
protectedCustomEngine(Parcelin) {
}
publicstaticfinalCreator<CustomEngine> CREATOR = newCreator<CustomEngine>() {
publicCustomEnginecreateFromParcel(Parcelsource) {
returnnewCustomEngine(source);
}
publicCustomEngine[] newArray(intsize) {
returnnewCustomEngine[size];
}
};
}
@OverrideprotectedvoidonActivityResult(intrequestCode, intresultCode, Intentdata) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == REQUEST_CODE_CHOOSE && resultCode == RESULT_OK) {
mSelected = PicturePickerUtils.obtainResult(data);
for (Uriu : mSelected) {
Log.i("picture", u.getPath());
}
}
}

Please note that LoadEngine is extends Parcelable.

##Download Gradle

repositories {
maven { url "https://jitpack.io" }
} dependencies {
compile 'com.github.dapptive:androidpicturepicker:1.1.8'
} 

##wait achieve

  1. Iamge quality (quality);
  2. Select Type (MimeType);

help me……
##License

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.

About

android powerful picture picker

Resources

Stars

1 star

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages