I\'m using shared elements for transition from fragment A to fragment B, and also for returning from fragment B to fragment A. this is the code in Fragment A: