Questions tagged [shared-element-transition]

A shared elements transition determines how views that are shared between two activities transition between these activities.

A shared elements transition determines how views that are shared between two activities transition between these activities.

https://developer.android.com/training/material/animations.html

435 questions
3
votes
0 answers

views are invisible after activity transition ends

i recently faced a pretty strange issue with activity transitions. I'm trying to make a slide in transition with exclusions, which are native status bar, native navigation bar and my custom bottom navigation bar. So i created piece of code based on…
KaMyLL
  • 969
  • 1
  • 7
  • 13
3
votes
1 answer

Floating action button blink after closing activity using Shared Element Transition

I have an issue with Shared Element Transition. When I return to MainActivity from DetailActivity, FAB blinking Gif example I used this sample project. For shared element transition I made: Enabled Window Content Transitions in styles.xml
3
votes
1 answer

Shared elements transition from recyclerView in viewPager to fragment

I create application where in main fragment there is viewPager with fragments with recyclerView. Each item of recyclerView has image, that need to be made shared to detail fragment with animation. The problem is that it doesn't work. I tried to make…
3
votes
0 answers

Show a fragment with shared elements animation

In my app I have code like this: final FragmentTransaction transaction = getSupportFragmentManager().beginTransaction(); transaction.replace(R.id.fragment_container, fragment, "tag"); transaction.addSharedElement(view,…
3
votes
1 answer

Shared element transition animation to/from a full screen activity

I've created a shared element transition animation between an ImageView located on a RecyclerView in Activity A to a full screen ImageView in Activity B. I've noticed that if Activity B is marked in its theme with:
AsafK
  • 2,425
  • 3
  • 32
  • 38
3
votes
0 answers

Transitions between activities with FLAG_ACTIVITY_SINGLE_TOP

I'm making transitions between activities using ActivityOptions.makeSceneTransitionAnimation. I create custom Transitions programmatically and set them using window.enterTransition and window.exitTransition. My activities stack looks like this: A…
3
votes
1 answer

Shared element transition in between fragments of different activities

I am trying to achieve shared element transition between two FixedAspectImageView which lie under different fragments of different activity. Destination is also under NestedScollView What all is happening is just a flicker at Fragment1 with slight…
3
votes
0 answers

Shared Element transition between activity to fragment

I am trying to make a gallery slider application in which i have a grid of all the images when an image is clicked the URLs list is passed to another activity with clicked position.URLs list is converted as fragments list.I want to have shared…
Abilash
  • 313
  • 5
  • 15
3
votes
0 answers

GridView to ViewPager shared element transition with Fragments / FragmentTransaction

I have the following view structure: One Activity The Activity contains one Fragment with a ViewPager and some other stuff Each page contains a Fragment One pages Fragment contains a GridView When the an item in the GridView is tapped, I replace…
3
votes
1 answer

Shared Element Transitions not working when exit from fragment to Activity containing Viewpager

I have a RecyclerView inside the fragment in a Viewpager and sharing element from an item in the RecyclerView to a DetailActivity containing a fragment. I am setting transition inside the DetailActivity for the entry and exit of the fragment. public…
mihirjoshi
  • 12,161
  • 7
  • 47
  • 78
3
votes
1 answer

Android shared element transitions not working with tag

I've been using shared element transitions in my app using ActivityOptionsCompat.makeSceneTransitionAnimation() and ActivityCompat.startActivityForResult() with some of the following XML code: ...
Farbod Salamat-Zadeh
  • 19,687
  • 20
  • 75
  • 125
3
votes
0 answers

Delay enter transition animation until shared element placement

I have an activity with a shared element that transitions into another activity. This works fine but the problem is the second activity has some dividers that get drawn on top of the previous activity which looks weird. I saw this video which shows…
Nerd225
  • 31
  • 2
3
votes
1 answer

Shared element transition between fragments across activities not consistent

I have two Activities A1 and A2. A1 has a fragment F1 and A2 has a fragment F2. When the user clicks on the fragment F1, it calls Activity A2 which has fragment F2 loaded by default. This is the flow. Now I have a shared view between fragments f1…
3
votes
0 answers

Shared element activity transition between fragments in separate activities

Shared element transitions are with us for a considerable time now and still there are some things that are not (at least explicitly) said. My problem is following: I have two activities, lets call them FirstActivity and SecondActivity. Both of them…
Marijan
  • 711
  • 8
  • 16
3
votes
0 answers

Android: Shared Element Transition with RecyclerView and Viewpager

I would like to implement a news app with shared element transitions between a RecyclerView and a Viewpager. My app has the following structure: Activity1 displays a RecyclerView. Each element of this list contains an ImageView (the shared element…