Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you implement Shared elements between Activities when using an ListView with images. #10

Closed
IamJackppot opened this issue Jul 10, 2015 · 3 comments
Assignees

Comments

@IamJackppot
Copy link

I have a ListView with a custom adapter that loads images and text. How would I be able to utilize the "Shared elements between Activities" when clicking on each of the items? I'm confused because if you click on an item, then set the transition effect to animate the ImageView, won't all of the images be animated rather than the one that corresponds with the item row you have clicked?

If you could give an example, that would be extremely helpful. Thank you.

@lgvalle lgvalle self-assigned this Jul 22, 2015
@lgvalle
Copy link
Owner

lgvalle commented Jul 22, 2015

Sorry I'm quite busy now, but a real example with list (although implemented using RecyclerView) is the next thing I want to add here. Not sure when I will have the time though.

@GautamGupta
Copy link

Check https://github.com/alexjlockwood/activity-transitions

However it uses a recyclerview

@lgvalle
Copy link
Owner

lgvalle commented Sep 13, 2015

@IamJackppot Sorry for the delay.
I have recently updated the code of this project with much more examples. Check out shared element transition from recyclerview here:

https://github.com/lgvalle/Material-Animations/blob/master/app%2Fsrc%2Fmain%2Fjava%2Fcom%2Flgvalle%2Fmaterial_animations%2FSamplesRecyclerAdapter.java#L41

@lgvalle lgvalle closed this as completed Sep 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants