-
Notifications
You must be signed in to change notification settings - Fork 251
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
Comments
设置了这两个就会报错 |
好的👌下午看一下 |
你好,我测试发现没有问题呢。你拉一下项目,运行一下demo看看是否正常。 |
或者提供你下你那边可复现的最小化工程代码。 |
你好,解决了,是因为没有加上 setZoomTransitionDuration 属性 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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()
The text was updated successfully, but these errors were encountered: