java.lang.IllegalStateException: The ImageView's ScaleType has been changed since attaching a PhotoViewAttacher

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by mingfenghappy
, 1 year ago
The ImageView's ScaleType has been changed since attaching a PhotoViewAttacher
via GitHub by hendrawd
, 10 months ago
The ImageView's ScaleType has been changed since attaching a PhotoViewAttacher
via Stack Overflow by datienza
, 2 years ago
The ImageView's ScaleType has been changed since attaching a PhotoViewAttacher
via GitHub by eugenkiss
, 2 years ago
The ImageView's ScaleType has been changed since attaching a PhotoViewAttacher
via GitHub by MOMANI1
, 1 year ago
The ImageView's ScaleType has been changed since attaching a PhotoViewAttacher
via GitHub by kangsLee
, 1 year ago
The ImageView's ScaleType has been changed since attaching a PhotoViewAttacher. You should call setScaleType on the PhotoViewAttacher instead of on the ImageView
java.lang.IllegalStateException: The ImageView's ScaleType has been changed since attaching a PhotoViewAttacher
at uk.co.senab.photoview.PhotoViewAttacher.checkImageViewScaleType(PhotoViewAttacher.java:684)
at uk.co.senab.photoview.PhotoViewAttacher.setImageViewMatrix(PhotoViewAttacher.java:815)
at uk.co.senab.photoview.PhotoViewAttacher.resetMatrix(PhotoViewAttacher.java:807)
at uk.co.senab.photoview.PhotoViewAttacher.updateBaseMatrix(PhotoViewAttacher.java:892)
at uk.co.senab.photoview.PhotoViewAttacher.onGlobalLayout(PhotoViewAttacher.java:423)
at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:982)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2410)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1437)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7397)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:920)
at android.view.Choreographer.doCallbacks(Choreographer.java:695)
at android.view.Choreographer.doFrame(Choreographer.java:631)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:906)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7237)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:103)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.