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
4
votes
1 answer

Activity destroyed after onActivityReenter if orientation changed

I have a gallery app here. GalleryActivity contains recyclerView loaded with image thumbnails. On clicking the thumbnail, it starts SlideshowActivity for enlarged image. I'm using SharedElements transition, I know how to use it and everything is…
4
votes
0 answers

White flash/flicker during shared element transition between fragments

I'm using shared element transition between two fragments. The animation works well, but there is a white flash which happens in the fragment. In my first fragment, I set shared element transition using: getActivity().getSupportFragmentManager() …
4
votes
1 answer

Shared element transition between fragment in ViewPager and new fragment

Is there any way to use a shared element transitions from a fragment inside a ViewPager into a new Fragment? EDIT I have a MainActivity with the ViewPager that holds FragmentA. From that I want to open FragmentB with a Shared Element…
gugge
  • 918
  • 1
  • 11
  • 17
4
votes
1 answer

Samsung Nougat 7.0 shared element transition issue

I'm using a shared element transition to go from one activity to another activity. I have a parent layout with a few children and I'm trying to animate them to the detail view using the shared element transitions. I've pushed up a sample repo here…
Meefle
  • 88
  • 4
4
votes
1 answer

Android shared element fragment transitions: return transition not working

In my project I'm using a RecyclerView to display a list of items with thumbnails. When the user clicks on an item a DetailView gets opened, where the image is displayed on the top. I'm trying to share some elements between this fragments, but the…
Katharina
  • 1,612
  • 15
  • 27
4
votes
0 answers

Android Shared Element Transitions between two ViewPagers

I'm trying to achieve the following: I have an item view that displays a ViewPager with images of that item and some other information. When the user taps one of the ViewPager's images, I'd like there to be a transition between the image on the…
4
votes
0 answers

Override reverse SharedElementTransition when onBackPressed

I have 4 ImageButtons placed in a simple Layout. When I click any of these buttons, a new TabActivity is launched, and the corresponding Tab is selected (0-3). The tabs are styled with an ImageView matching one of the previous buttons each. EDIT…
4
votes
2 answers

Android: Shared Element Transition with Fragments

I'm working on a project where I need a transition between fragments using shared elements. I've tried nearly everything but the transition effect isn't working. I have an activity called TimelineActivity and I have 2 fragments, a ListFragment that…
4
votes
0 answers

Android shared element "hero" transitions when obscured

With Android Lollipop we can do shared element transitions on images so that when you open the "detail" view you can animate an image to expand to a larger size in the new screen. This all works fine but when an image appears underneath a navigation…
Barry Irvine
  • 13,858
  • 3
  • 25
  • 36
4
votes
1 answer

Why Fade transition doesn't work on Shared Element

I have 2 Activities , the Shared Element transition works fine.ChangeBounds is the only the transition applied. I want to apply a fade transition while the shared element moves, so the ordering is ORDERING_TOGETHER. public class TransitionUtils { …
Raymond Chenon
  • 11,482
  • 15
  • 77
  • 110
4
votes
1 answer

Shared Element Transition with RecyclerView items - Android

I'm trying to make shared element transition work with an element inside a recycler view. When the user clicks on a textview inside my recycler view item, the Detail Activity opens. Inside Detail Activity, I display some infos and I also have a tab…
4
votes
0 answers

Shared Element Transition Crashing

I have a RecyclerView Adapter from which there is an intent to the next Activity Transition Exit code : public ViewHolderEvents onCreateViewHolder(ViewGroup viewGroup, int i) { if(Build.VERSION.SDK_INT>=21) { ((Activity)…
4
votes
1 answer

Shared Elements Transition with nested views

I put together a simple sample app to try shared elements transition with nested views (source code on github). In this case it's an ImageView inside a CardView. I got the following results: As you can see, while the parent view (CardView) animates…
Longi
  • 3,913
  • 2
  • 28
  • 38
4
votes
2 answers

Content Transitions on Top of Shared Elements in android

I am trying my hands with SharedElements and Content Transitions in Android. I was trying to combine Content Transitions and Shared Elements and create a particular animation, however I have encountered a problem. After the transition on Shared…
4
votes
0 answers

Lollipop multiple Shared view transition

I'm working on making beautiful transitions on my app. I succeed in sharing 1 element but failed when I shared multiple elements. The following code only animates one element of the 3 shared. I don't know why. It seems that this happens because of…