【发布时间】:2021-08-09 02:04:48
【问题描述】:
在活动中此方法仍然有效,但当我在对话框片段中调用它时,它已被弃用。
编辑:我使用 Matisse 库来加载图像,就像
库链接:https://github.com/zhihu/Matisse
Matisse.from(getActivity())
.choose(MimeType.ofImage())
.countable(true)
.maxSelectable(9)
.addFilter(new GifSizeFilter(320, 320, 5 * Filter.K * Filter.K))
.restrictOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED)
.thumbnailScale(0.85f)
.imageEngine(new GlideEngine())
.showPreview(false) // Default is `true`
.forResult(REQUEST_CODE_AVATAR);
我如何在这个库中使用 ActivityResultLaucher?
向我解释为什么以及如何解决它?请
祝大家有美好的一天!
【问题讨论】:
-
这是stackoverflow.com/questions/62671106/… 的解决方案吗?
-
谢谢你,但我只是编辑我的问题,在这种情况下你能帮我吗?
标签: android deprecated