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
8
votes
0 answers

Can shared element transitions work for fragments in different containers?

I want to implement the shared element transitions in my app for Android Lollipop. After I have read the documents, the SO questions and some posts I decided to give it a go, but now I got a problem. The scenario is I have two fragment containers…
8
votes
1 answer

Activity and Fragment Transitions in Lollipop

I'm trying to wrap my head around the new Activity Transition framework in Lollipop. The Activity Transition works pretty straighforward and there are some basic info here, but the Fragment Transition is undocumented and I can't get it to work. I've…
7
votes
2 answers

Android shared element transition between different scaleType

I followed this article of android develop blog, and here is his source code. The demo works well, however generally we prefer using centerCrop scale type in image list, and using fitCenter in detail mode. When I modify the code to achieve this,…
Chenhe
  • 924
  • 8
  • 19
7
votes
1 answer

Failed to retrieve removeGhost method

I'm putting in place the Android Navigation Component in my app. Some transitions work fine, but for this one I have an error. The transition view, from fragment A, stay on the new fragment (B) and hide some elements. Moreover, when I scroll in the…
7
votes
0 answers

Shared Element Transition with Android DataBinding

I am using Conductor API together with Android DataBinding and have been trying to make a simple shared element transition from a controller view to another controller view but it is not working. Tapping on "Android Databinding" demo from the list…
7
votes
0 answers

Coming back for transition fragment shared element gone

In certain View in my app I'm displaying a Fragment with some Omages in a RecyclerView. When an Image is clicked, a new detail Fragment is shown (with an enter and return transition). The problem is when the Back Button is pressed from the details…
IrApp
  • 1,823
  • 5
  • 24
  • 42
7
votes
1 answer

is it possible to make shared element transition from fragment to ViewPager inside viewpager

I have Activity A that have a Fragment contains list of items and that item contains ImageView when I click the Item I start Activity B that contains a ViewPager of fragments and inside each fragment there is a ViewPager that contains Images what…
7
votes
0 answers

Z-Order in Shared Element Activity Transition Animations

I am doing some basic shared element activity transition animations with code similar to this: Intent i = new Intent(AnActivity.this, AnotherActivity.class); ActivityOptionsCompat options = …
Richard Le Mesurier
  • 29,432
  • 22
  • 140
  • 255
7
votes
1 answer

Android nougat status bar shows white color when launching an activity

In my android application, I have a MainActivity say M. this activity uses Android's tabLayout widget to initialize four tabs. Each tab corresponds to one Fragment say F1,F2,F3,F4 are four fragments. From F2 , i am launching an activity say C . But…
7
votes
1 answer

Shared Element Transition when reopening existing Activity in stack Reorder To Front

I have an Activity A from there I open Activity B, and pass the shared element to it. It animates the transition fine, but when I go back to Activity A and then go to Activity B again which is still in the stack using…
7
votes
1 answer

ImageView shared element transition (between Activity) starts with wrong scaleType

I found the problem with SimpleDraweeView of fresco at the beginning. However the problem still exists after I replace with android ImageView. So I can't be sure whether the problem is due to Android or just fresco. What the problem is The first…
7
votes
0 answers

Hero View's Position Calculated Wrongly During Shared Element Transition

I have two activities, Toolbars and CoordinatorLayouts in both of them. Toolbars can be hidden by scrolling, thanks to CoordinatorLayout. I'm trying to make a shared element transition between them and these are the steps I've taken so far: Set an…
7
votes
0 answers

Cancel Shared Return Transition on Android Lollipop

I was playing around with Lollipop's Activity Transition. I have a button in Activity A which when clicked calls Activity B. In the Activity B, I am overriding onBackPressed() and calling finishAfterTransition() Activity B just has two relative…
7
votes
1 answer

Shared element transition don't have the expected behaviour

I implemented the shared element transition between from an image in a RecyclerView to an image in a new Fragment. The RecyclerView is hosted in a fragment hosted by an Activity and the target fragment is hosted inside another Activity. When I click…
7
votes
1 answer

Android fragment transition with shared element

everyone! I have 2 fragments. In one fragment i have a little image in card. In 2d fragment i have the same image in the header of my layout. I want to make shared element transition of this image from one fragment to another like in this example…