Resizing transition using cache placholder #1490
Unanswered
leondeklerk
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
For my application I currently have the following logic:
I have a list with images that, when an element is clicked, opens a dialog with a new ImageView. First, the dialog ImageView is resized to match the location and size of the list item, then
.load(..)
is called on that view with the cache key of the list item as a placeholder. Upon loading the image in the new view, a listener creates a new Android TransitionSet, adds it to the TransitionManager, resizes the imageView to match its parent, and changesscaleType
fromCENTER_CROP
toFIT_CENTER
.See the following code snippet which achieves the transition:
Now I really want to achieve the following:
So basically the question is if this is possible within Coil and if it is, what the general elements are that I would need.
(I don't expect a full solution, just happy with any help I can get)
Beta Was this translation helpful? Give feedback.
All reactions