question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The ImageView's ScaleType has been changed since attaching a PhotoViewAttacher

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

This has become a really annoying problem in Fragments. It appears to be caused by shared element transitions on Lollipop, the OS’s scaling transition animation must change the scale type.

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:7

github_iconTop GitHub Comments

3reactions
Ulezcommented, Oct 14, 2016

I have found the same problem.Do you have solved it?

2reactions
maf2356commented, Nov 5, 2016

call the PhotoViewAttacher.cleanup before u calling onBackPressed or ondestory

Read more comments on GitHub >

github_iconTop Results From Across the Web

The ImageView's ScaleType has been changed ... - GitHub
java.lang.IllegalStateException : The ImageView's ScaleType has been changed since attaching a PhotoViewAttacher This has become a really ...
Read more >
android.widget.ImageView.getScaleType java code examples
How to use. getScaleType. method. in. android.widget.ImageView ... "The ImageView's ScaleType has been changed since attaching a PhotoViewAttacher"); } } }.
Read more >
Change the size of ImageView on zooming - Stack Overflow
It is because the ImageView has a view height of "wrap_content". Change it to "match_parent" and set the scaleType of the image to...
Read more >
android.widget.ImageView#getScaleType - ProgramCreek.com
MATRIX) { throw new IllegalStateException( "The ImageView's ScaleType has been changed since attaching a PhotoViewAttacher"); } } }. Example 5 ...
Read more >
ImageView.ScaleType - Android Developers
ImageView.ScaleType ... Returns true if the specified object is equal to this enum constant. ... Connect with the Android Developers community on LinkedIn ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found