Does this work with activity transition on Lollipop and above?
See original GitHub issueI received a crash when attempted to:
java.lang.IllegalArgumentException: ScaleType FIT_CENTER not supported.
at de.hdodenhof.circleimageview.CircleImageView.setScaleType(CircleImageView.java:105)
at android.app.ActivityTransitionCoordinator.setSharedElementState(ActivityTransitionCoordinator.java:431)
at android.app.ActivityTransitionCoordinator.setSharedElementState(ActivityTransitionCoordinator.java:545)
at android.app.EnterTransitionCoordinator.startSharedElementTransition(EnterTransitionCoordinator.java:329)
at android.app.EnterTransitionCoordinator.-wrap4(EnterTransitionCoordinator.java)
at android.app.EnterTransitionCoordinator$5$1$1.run(EnterTransitionCoordinator.java:399)
at android.app.ActivityTransitionCoordinator.startTransition(ActivityTransitionCoordinator.java:773)
at android.app.EnterTransitionCoordinator$5$1.onPreDraw(EnterTransitionCoordinator.java:396)
at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2055)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
at android.view.Choreographer.doCallbacks(Choreographer.java:670)
at android.view.Choreographer.doFrame(Choreographer.java:606)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Seems like the activity transition framework trying to set the ScaleType to FIT_CENTER which apparently not support by CircleImageView. Is there any workaround?
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Are Activity/Fragment Transitions compatible with pre-Lollipop ...
No, Activity/Fragment Transitions are not possible on pre-Lollipop devices. According to the documentation: Start an activity with additional launch ...
Read more >Start an activity using an animation - Android Developers
Activity transitions in material design apps provide visual connections between different states through motion and transformations between ...
Read more >Getting Started with Activity & Fragment Transitions (part 1)
This post gives a brief overview of Transition s and introduces the new Activity & Fragment transition APIs that were added in Android...
Read more >Introduction to the New Lollipop Activity Transitions
With just a few lines of code, the new Lollipop APIs allow you to meaningfully transition between two activities, thanks to seamless and ......
Read more >Activity and Fragment Transitions in Lollipop - YouTube
This video is part of the Udacity course "Material Design for Android Developers". Watch the full course at ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hello, I did a workaround. Hope you’ll like it.
layout.txt
Just set the “android:transitionName” in a another layout. e.g: RelativeLayout’
^Yes it would work with another layout, but if you nested the imageview inside it, the “relative layout” or etc, will work as a parent as to the child (imageview). Get rid of the height and width of the imageview to force use the parent’s width_height layout. Cheers!