I have two activities. Both contains a recycler view. I want to switch from activity1
to activity2
with a shared element transition. Is it possible? As far as I know i cant get reference of the destination element before onBindViewHolder()
. Is there anyway to get around it ?
Asked
Active
Viewed 146 times
0

dumb_terminal
- 1,815
- 1
- 16
- 27
-
Can you explain what the 'shared element transition' is? – diyoda_ Feb 09 '16 at 11:38
-
1Use interfaces [link](http://stackoverflow.com/a/35238587/2183890) – Ahsan Kamal Feb 09 '16 at 11:38
-
@Diyoda I was talking about material shared element transition https://guides.codepath.com/android/Shared-Element-Activity-Transition – dumb_terminal Feb 09 '16 at 12:06
-
Way to go @AKSiddique, post it as answer and I shall mark it as solution. – dumb_terminal Feb 11 '16 at 05:45
-
@dumb_terminal instead of posting duplicate answer, if the link is useful for you then upvote the answer. – Ahsan Kamal Feb 11 '16 at 06:24