private static final int REQ_CHOOSE_IMAGES = 1;
PhotoPicker.from(MainActivity.this)
.builder()
.maxSelectable(9)
.forResult(REQ_CHOOSE_IMAGES);
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (resultCode == Activity.RESULT_OK) {
if (requestCode == REQ_CHOOSE_IMAGES) {
ArrayList<Image> imageList = (ArrayList<Image>) PhotoPicker.obtainResult(data);
}
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
Warpath/PhotoPicker
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
图片选择器,可以简单定制样式
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published