Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalArgumentException: Software rendering doesn't support hardware bitmaps #198

Open
minorlai opened this issue Dec 26, 2023 · 6 comments

Comments

@minorlai
Copy link

ImagePreview.instance
.setContext(context)
.setImage(imgUrl!!)
// 加载策略,默认为手动模式
.setLoadStrategy(LoadStrategy.Default)
// 长图的展示模式,默认是SCALE_TYPE_CENTER_INSIDE,缩小到内部居中:
.setLongPicDisplayMode(ImagePreview.LongPicDisplayMode.FillWidth)
// 保存的文件夹名称,会在Picture目录进行文件夹的新建。比如:"BigImageView",会在Picture目录新建BigImageView文件夹)
.setFolderName("imgPreview")
// 是否启用点击图片关闭。默认启用
.setEnableClickClose(true)
// 是否启用下拉关闭。默认不启用
.setEnableDragClose(true)
// 是否忽略缩放启用拉动关闭。默认不忽略
.setEnableDragCloseIgnoreScale(true)
// 是否启用上拉关闭。默认不启用
.setEnableUpDragClose(true)
.setTransitionView(currentView)
.setTransitionShareElementName("shared_element_container")
.start()

@minorlai
Copy link
Author

设置了这两个就会报错
.setTransitionView(currentView)
.setTransitionShareElementName("shared_element_container")

@minorlai
Copy link
Author

minorlai commented Jan 3, 2024

@equationl @BzCoder @lovexyx @SherlockGougou
麻烦看一下

@SherlockGougou
Copy link
Owner

好的👌下午看一下

@SherlockGougou
Copy link
Owner

你好,我测试发现没有问题呢。你拉一下项目,运行一下demo看看是否正常。

@SherlockGougou
Copy link
Owner

或者提供你下你那边可复现的最小化工程代码。

@minorlai
Copy link
Author

你好,解决了,是因为没有加上 setZoomTransitionDuration 属性
缩放关闭后,页面上的图片会闪一下是什么原因呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants