Comments (9)
I have the same error!
from photoview.
I'm seeing the same issue here as well.
I first thought this was just a case of #50 but the 209 line number indication mentioned here (compared to 210 over on #50) makes me believe this might be a related albeit slightly different problem.
from photoview.
I'm also having this issue
from photoview.
I tried this it might work for you guys. No errors so far.
In PhotoviewAttacher File replace clean up function with the function below
@SuppressLint("NewApi")
@SuppressWarnings("deprecation")
public final void cleanup() {
if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN)
{
if (null != mImageView) {
mImageView.get().getViewTreeObserver().removeOnGlobalLayoutListener(this);
}
if (null != mViewTreeObserver && mViewTreeObserver.isAlive()) {
mViewTreeObserver.removeOnGlobalLayoutListener(this);
mViewTreeObserver = null;
// Clear listeners too
mMatrixChangeListener = null;
mPhotoTapListener = null;
mViewTapListener = null;
// Finally, clear ImageView
mImageView = null;
}
}
else
{
if (null != mImageView) {
mImageView.get().getViewTreeObserver().removeGlobalOnLayoutListener(this);
}
if (null != mViewTreeObserver && mViewTreeObserver.isAlive()) {
mViewTreeObserver.removeGlobalOnLayoutListener(this);
mViewTreeObserver = null;
// Clear listeners too
mMatrixChangeListener = null;
mPhotoTapListener = null;
mViewTapListener = null;
// Finally, clear ImageView
mImageView = null;
}
}
}
from photoview.
This is already fixed in dev branch, will be merged in 1.2.2 release
from photoview.
I'm also having this issue for 1.2.2
from photoview.
Same issue in 1.2.3.
from photoview.
@smarek Reopen this. Its still ocurring.
from photoview.
@smarek It's still ocurring.
from photoview.
Related Issues (20)
- images are displayed without resizing
- Error implementing dependency HOT 1
- Not working on Android Studio Bumblebee HOT 3
- Dragging gesture is consumed when used in scrollable composable HOT 5
- Exceptions occur when setZoomable(false) and setScaleType(FIT_XY) are used together HOT 1
- Canvas: trying to draw too large(432000000bytes) bitmap. HOT 1
- Profile
- Way to get location of tap outside view?
- Openharmony application
- Is there a Version Update and Release Plan after 2.3.0 HOT 1
- Picture
- Could not resolve all artifacts HOT 4
- Could not resolve all artifacts - com.github.chrisbanes:PhotoView:2.3.0 HOT 5
- Could not resolve com.github.chrisbanes:PhotoView:2.3.0 HOT 1
- Photo HOT 1
- It seems that the Viewpage that does not support sliding up and down? HOT 1
- Scrolling behavior in ViewPager HOT 1
- Why not Migrate to AndroidX
- 图片放大后 比较模糊 请问如何处理 谢谢 HOT 1
- The picture is blurred after enlarging. How to deal with it HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photoview.