1

I have seen a lot of examples of Activity To Activity or Fragment to Fragment shared element transitions on the internet.

However not one Activity to Fragment one. Neither do the android docs encourage/discourage or talk about such a scenario . I am also astonished as to why wasn't the need for this felt by other developers.

Is it not possible ? . Can't we share an element between an Activity A and a fragment inside it ? .

A common scenario is like I have a list of students on an Activity and upon clicking them I see a fragment with their details.

Chithra B
  • 586
  • 2
  • 9
Muhammad Ahmed AbuTalib
  • 4,080
  • 4
  • 36
  • 59
  • **A common scenario is like I have a list of students on an Activity and upon clicking them I see a fragment with their details.** how will you do that ?? can you specify ? – Santanu Sur Feb 07 '18 at 08:15
  • you are saying the fragment is in the activity itself..so are you going to play with visiblity on clicking each item?? – Santanu Sur Feb 07 '18 at 08:16
  • @SantanuSur I would commit and uncommit the fragment when the row is clicked . – Muhammad Ahmed AbuTalib Feb 07 '18 at 08:17
  • https://stackoverflow.com/questions/28507907/shared-element-transition-with-dialog-activity/28508306#28508306 you can try this..atleast the activity will be visible... or you have to hard code the animation... in the same activity – Santanu Sur Feb 07 '18 at 08:23

0 Answers0