Simon
Simon
我们在调用的时候用到这个方法,其中galleryConfig是由GalleryConfig.build出来的,注意到他是一个静态的对象,所以所有的galleryConfig其实就是共用的一个对象; 我若在MainActivity里面设置了一个全局变量类似下面这个: private GalleryConfig galleryConfig = new GalleryConfig.Builder() .imageLoader(new GlideImageLoader()) // ImageLoader 加载框架(必填) .iHandlerCallBack(iHandlerCallBack) // 监听接口(必填) .provider("minihou.net.homeschoolconnect.fileprovider") // provider (必填) .pathList(listPath) // 记录已选的图片 .crop(true) // 快捷开启裁剪功能,仅当单选 或直接开启相机时有效 .isShowCamera(true) // 是否现实相机按钮...
private static Intent xiaomiApi(Context context) { String version = getSystemProperty(MIUI_VERSION_NAME); if(TextUtils.isEmpty(version) || version.contains("7") || version.contains("8")) { Intent intent = new Intent("miui.intent.action.APP_PERM_EDITOR"); intent.putExtra("extra_pkgname", context.getPackageName()); return intent; } return defaultApi(context); }