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
12
votes
2 answers

Using SharedElement Activity transitions with a custom View

I am working on a proof-of-concept where I have a few custom views in a TableLayout. When one of the Views is clicked I want to animate the view expanding into a new Activity. The effect I want to achieve is similar to what is seen here. From my…
12
votes
1 answer

Shared element transition leaves a strange white background between first activity and second transparent activity

Recently I faced up with a weird problem. I have two activities. The first one contains a grid with a thumbnails. A kind of a gallery. And the second one contains a view pager with fragments and behaves like an image viewer where you can slide…
12
votes
4 answers

How to implement scale up animation on shared element on activity transition

I wish to implement scale up animation on shared elements on activity transitions just like in this link . But couldn't find any good reference for this specific effect and how to implement it. Is this a custom transition or a default ? Maybe anyone…
12
votes
1 answer

Fading hero views' children in shared element transition

I'm curious how android handles the children of hero views in the shared element transition one can see in Google Keep: In the standard shared elements transition, on the enter animation, the hero views in the calling activity are instantaneously…
William
  • 121
  • 5
12
votes
3 answers

Custom circular reveal transition results in "java.lang.UnsupportedOperationException" when paused?

I created a custom circular reveal transition to use as part of an Activity's enter transition (specifically, I am setting the transition as the window's enter transition by calling Window#setEnterTransition()): public class CircularRevealTransition…
12
votes
1 answer

Glitch when animating nested views in a shared element Activity transition?

I've been messing around with the new APIs in Android 5.0 and have been trying to figure out whether or not it is possible to animate both a ViewGroup and one of its children separately as shared elements during an Activity transition. The…
11
votes
1 answer

Navigation component shared element transitions works for enter but not for popping back

I'm trying to use a shared element animation between 2 fragments, BlankFragment and BlankFragment2. BlankFragment has a recycler view and BlankFragment2 is a details screen. They share an image and I'm using the new navigation component. In…
11
votes
1 answer

How to implement Material Design parent-child transition with recyclerview

I'm trying to implement this like others before me. What I find so far: How to implement the "parent-to-child" navigational transition as prescribed by Material Design Material Design parent-child navigational transition recyclerview entry to…
11
votes
1 answer

Android Shared element transition - prevent shared element from being drawn

I'm working in a custom Transition to animate only the visible part of the Shared View in case it is partially visible. In my case this happens because the Shared View is inside a ConstraitLayout, and the ConstraitLayout inside a ScrollView. I…
11
votes
1 answer

Shared element transition - animate only the visible part of the shared view

I'm working in an app that is similar to Google Calendar... There are events and when a user click one, the event grows and transforms into the detail view. The shared views (the events) are inside a ScrollView, so at some point those views may be…
11
votes
4 answers

Android shared element transition ToolBar overlap

I've implemented shared element transitions for my app, where the transition begins on an image from a Fragment (with RecyclerView) inside a ViewPager on the home screen and expands into full screen gallery view, again within a Fragment in a…
11
votes
0 answers

How to use shared element snapshot views during an Activity transition?

I am confused about the List sharedElementSnapshots argument that is passed to the SharedElementCallback's onSharedElementStart() and onSharedElementEnd() methods. Presumably these snapshot views are meant to be used as temporary placeholders…
11
votes
4 answers

Android reverse shared element transition on back after orientation change?

For shared element transition I am following this github project. It has 2 screens - one with recyclerview having number of cards & second the detail screen. As expected, it exhibits shared element transition of imageview & textview from…
10
votes
1 answer

Android shared element transition between 2 RecyclerViews

I am using default shared element transitions between 2 RecyclerView items in 2 activities (MainActivity and DetailActivity). Animation from MainActivity to DetailActivity is working fine, but if user has scrolled to new item in the DetailActivity,…
dev
  • 11,071
  • 22
  • 74
  • 122
10
votes
0 answers

How to use Shared Elements Transition with custom interpolator?

Is there a way to use Shared Elements Transition with custom interpolator programmatically? Please, point me in the right direction where to read about this or some examples.
DeniSHow
  • 1,394
  • 1
  • 18
  • 30
1 2
3
28 29