// 进入相册 以下是例子:用不到的api可以不写 PictureSelector.create(MainActivity.this) .openGallery()//全部.PictureMimeType.ofAll()、图片.ofImage()、视频.ofVideo()、音频.ofAudio() .theme()//主题样式(不设置为默认样式) 也可参考demo values/styles下 例如:R.style.picture.white.style .maxSele...
android gallery select image camera picture album wechat crop-image imageselector Updated Jun 13, 2023 Kotlin huzhenjie / ImageSelector Star 61 Code Issues Pull requests 图片选择器, 支持多图选择和图片预览 android photos image widget lib photo imageselector photoselector Updated Nov 9, 201...
ImageEngine GlideEngine PicassoEngine CoilEngine Usage For more features, seedocumentation A simple use case is shown below: 1、Get picture PictureSelector.create(this).openGallery(SelectMimeType.ofImage()).setImageEngine(GlideEngine.createGlideEngine()) .forResult(newOnResultCallbackListener<LocalMed...
importandroid.view.ViewGroup; importandroid.webkit.ValueCallback; importandroid.webkit.WebChromeClient; importandroid.webkit.WebSettings; importandroid.webkit.WebView; importandroid.widget.Button; importandroid.widget.PopupWindow; importandroidx.annotation.RequiresApi; importandroidx.appcompat.app.AppCompatActivi...
Android 11 使用相机,需要再AndroidManifest.xm 添加如下代码: <queries package="${applicationId}"> <intent> <action android:name="android.media.action.IMAGE_CAPTURE"> </action> </intent> <intent> <action android:name="android.media.action.ACTION_VIDEO_CAPTURE"> </action> </intent> </queries>...
PictureSelector.create(this).openGallery(SelectMimeType.ofAll()).setImageEngine(GlideEngine.createGlideEngine()) .buildLaunch(R.id.fragment_container, newOnResultCallbackListener<LocalMedia>() { @Override public void onResult(ArrayList<LocalMedia>result) { } @Override public voidonCancel() { }...
PictureSelectorFragment selectorFragment = PictureSelector.create(this) .openGallery(SelectMimeType.ofAll()) .setImageEngine(GlideEngine.createGlideEngine()) .build(); getSupportFragmentManager().beginTransaction() .add(R.id.fragment_container, selectorFragment, selectorFragment.getFragmentTag()) ....
PictureSelector.create(this) .openGallery(SelectMimeType.ofImage()) .setImageEngine(GlideEngine.createGlideEngine()) .forResult(new OnResultCallbackListener<LocalMedia>() { @Override public void onResult(ArrayList<LocalMedia> result) { } @Override public void onCancel() { } });...
PictureSelector.create(this) .openGallery(SelectMimeType.ofImage()) .setImageEngine(GlideEngine.createGlideEngine()) .forResult(new OnResultCallbackListener<LocalMedia>() { @Override public void onResult(ArrayList<LocalMedia> result) { } @Override public void onCancel() { } });...
PictureSelector.create(this) .openGallery(SelectMimeType.ofImage()) .setImageEngine(GlideEngine.createGlideEngine()) .forResult(new OnResultCallbackListener<LocalMedia>() { @Override public void onResult(ArrayList<LocalMedia> result) { } @Override public void onCancel() { } });...