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

Exit transition does not work for an ImageView Shared Element in a ViewPager in a Fragment

In my app, I have an Activity launching another Activity with a Fragment in it, that contains a ViewPager of images. What I have working currently, is the enter transition where the first Activity launches the second and the transition is correct.…
jonalmeida
  • 1,206
  • 1
  • 9
  • 24
9
votes
0 answers

Shared element transition - transform color

Is it possible to animate a TextView via a shared element transition and additionally transfrom the color while animating? I'm transitioning from a text in the activity to a toolbar's text and therefore want to switch the color while…
prom85
  • 16,896
  • 17
  • 122
  • 242
9
votes
1 answer

Sharedelement transition between textview and toolbar title

I have an item that has a name in a recycler view and a details activity with a collapsing toolbar that displays the name of the item. I would like to add an sharedelement transition between the name of the item and the title of the…
9
votes
2 answers

Shared Element Transition into a View in a RecyclerView, possible?

In view of normal Lollipop transition of Activity having shared elements, e.g. https://github.com/codepath/android_guides/wiki/Shared-Element-Activity-Transition, it is quite common one is transitioning from a View from a Recycler View into a normal…
9
votes
2 answers

Shared Element Transition (Foreground/Background) Issue

I would like to know whether it is possible to change the z-order of a shared element transition? Look: I have a layout with an image, that fills the whole screen. In front of the image is a textbox which shows the title of the image. If I klick on…
jennymo
  • 1,450
  • 1
  • 18
  • 43
9
votes
1 answer

Android - toolbar and status bar as shared objects with content changes

In my app I set the toolbar and status bar as shared objects as suggested in option #2 in this post The general behavior and outline of the toolbar and tabs are excellent - the only issue is that when I move to activity B, some of the UI elements…
Noa Drach
  • 2,381
  • 3
  • 26
  • 44
9
votes
1 answer

Weird issue when transitioning ImageView in Android 5.0

I'm experiencing a strange issue / bug regarding ImageView transitions between Activities in Android 5.0. I'm trying to transition a thumbnail image from Fragment A (in Activity A) to the header image of Fragment B (in Activity B). It works well…
8
votes
0 answers

BottomSheetDialog Fragment Shared Elements transitions implementation?

I have a RecyclerView in a fragment with an item list. So when I click an item, a BottomSheetDialog opens. There are some views common for both of the views. So I thought to add shared transitions to this. I search StackOverflow, but I didn't find…
8
votes
3 answers

Transition blink after orientation change

UPDATE Ive opened a bug with Google https://issuetracker.google.com/issues/63663775 I am attempting to employ makeSceneTransitionAnimation within my current Android Application. I have a Source Activity, that contains a Fragment, and within the…
8
votes
3 answers

Android shared element transition from splash screen to main activity

My application displays a splash screen for 1 second before displaying the main activity. Both the splash screen and main activity share a common image that is required to animate from the center of the splash screen to the top of the main activity…
8
votes
0 answers

Shared Element Transition between two fragments, keeping first fragment visible

I got my shared element transition between two fragments working fine. However, the problem is I do not want to hide the first fragment - I want it to show underneath the newly added second fragment. If I do not include ft.hide( firstFragment ) in…
8
votes
0 answers

Android Shared Element Transition with Rotation, possibly broken?

(See updates after code.) I have a screen with a rotated View that I want to transition, ideally using the built-in shared element transition feature of Android, to another screen. However, the animation that results when the rotation of the View is…
lilbyrdie
  • 1,887
  • 2
  • 20
  • 24
8
votes
2 answers

Shared element transitions go over the navigation bar

I am attempting to animate between two screens using a shared element transition. Below is what seems like the relevant sections of my code (probably more that isn't relevant too) but I've cut out some of it to save…
Ellis
  • 3,048
  • 2
  • 17
  • 28
8
votes
1 answer

Is there a "setSharedElementsUseOverlay()" method for Fragment transitions?

During a shared element Activity transition, shared elements are drawn in the window decor view's ViewOverlay by default. If necessary, the developer can disable this default behavior by calling the Window#setSharedElementsUseOverlay(false) method.…
8
votes
2 answers

How can i exclude ActionBar when transitions between Activities on Android 5.0

On Android 5.0 Lollipop, I have two activities A and B. Activity B has a slie enter transition from bottom with a Overlay ActionBar, but when B shows, the ActionBar also slide from bottom to top. How can i prevent the actionbar from slide…