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

Shared element transition not working on add fragment in android

I have observed that shared element transition only works with "replace" method. Is there any way by which this can also work with "add" method
RHL
  • 534
  • 5
  • 16
3
votes
0 answers

Android Shared Element Transition to Menu Item

I'm working on an Android Lollipop project using Shared Element Transitions. I would like to create a transition that transitions an ImageButton in Activity A to a Menu Item on Activity B.
user2669161
  • 41
  • 1
  • 4
3
votes
1 answer

Background Glitch while using shared elements

I am having two activities,out which first activity contain a recycle view in fragment which is added on the first activity and second activity contain a toolbar in collapsing toolbar layout,i have created a shared element transition between this…
3
votes
2 answers

Android shared element transition only working when leaving an activity not when entering

I am using a shared element transition to animate an image view from an activity A to an activity B. I am using the following code for this : Intent i = new Intent(A.this, B.class); Pair p1 = Pair.create(v2,…
3
votes
1 answer

Shared element return transition blinks

I am writing a custom return transition for when an activity is returned to the calling activity. The transition fades the finishing activity's content into the final position of the calling activity. However, when that animation completes, the…
Jin
  • 6,055
  • 2
  • 39
  • 72
3
votes
0 answers

How to show large text without "Font size too large to fit in cache" and not broken shared-element transition

I have shared element transition for TextView with some text. Text size changes from 25sp to 200sp. If text contains colored Emoji (☺) I get "Font size too large to fit in cache". As I know there is android property "ro.hwui.text_large_cache_height"…
3
votes
2 answers

Shared Element Transition issue between two Activities

I'm having issues creating a basic shared element transition. The transition from one activity to the next seems to glitch and reproduce the first activity instead of the resulting activity. Overview: I have two activities: A MainActivity and a…
3
votes
0 answers

Sharing elements between activity and fragment

I tried following the shared elements transition tutorials for activities and fragments but I am in a kind of special situation here. To simplify, I will explain my problem with a single TextView. My problem is : I have a fragment with a recycler…
3
votes
0 answers

Lollipop transitions not working when resuming activity

I have been trying to implement the new Lollipop activity and shared elements transitions during a few days following the steps from Alex Lockwood awesome blog posts. But now I'm facing a bit of a problem. My application uses a DrawerLayout for…
3
votes
1 answer

Fix SharedElementTransition animation not showing well

I'm trying to create a shared elements transition animation between 2 activities with a shared ImageView. The first one has a RecyclerView with an item click listener, and after click, it should start the other activity with the transition. The…
3
votes
0 answers

Click view in Recyclerview to start Activity - Delay in Activity Start

I am trying to start an activity on clicking an ImageView in a recyclerview. In the adapterclass I have used a clicked listener in the onBindHolder method as shown below viewHolder.savedImage.setOnClickListener(new View.OnClickListener() { …
3
votes
0 answers

How can I postpone a fragment to a fragment transition like the activity transition (postponeEnterTransition

How to postpone a Fragment's enter transition in Android Lollipop? I have the troubles in the fragment transition. (shared element transition and so on.) I want to make the fragment transition with screen orientation also well done. After many…
3
votes
1 answer

Why only the called activity's shared element enter transition run?

I tried to add my custom shared element transition in my app, and I make it work on some different modes in different activity. But in my test, only the called activity's enter transition is executed. This is my code in the calling activity A: …
3
votes
1 answer

Shared element transition between two different applications in Android?

Is there a possibility to use shared element transition between two different apps?
2
votes
1 answer

Multiline TextView Edge Clipped But Not During SharedElementTransition

I have an issue where my TextView has characters clipped on its right side only for certain pieces of text. To specify: I don't have a custom font or italic text; it's standard text. Here's an image, there should be an "i" where I have the circle,…
Michael P
  • 225
  • 3
  • 11