Questions tagged [android-transitions]

Tag related with Android animation effects between screens or scenes

739 questions
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
1 answer

Transition of list item to expand into details like Google Inbox

I want my item in ListView to expand into a Fragment / Activity showing the item details. Here's an example showing the animation - https://dl.dropboxusercontent.com/u/75404011/inbox-animation.mp4 I looked at Google Inbox like RecyclerView item open…
jaibatrik
  • 6,770
  • 9
  • 33
  • 62
11
votes
1 answer

Does someone know how to use onActivityReenter properly?

I´ve just realised that android has another method called onActivityReenter. What is this for? can it be used like onActivityResult? Documentation says that is used for transitions, but not 100% what for.
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

'Inbox by gmail' styled opening and closing transition for an email (Android)

Can anyone suggest me an example for the opening and closing transition that is used in Inbox by Gmail's Android App. I did manage to find this example. However, is there anything else available?
vinay vyas
  • 491
  • 1
  • 4
  • 17
9
votes
0 answers

Pre-load fragments with Android Jetpack Navigation for smooth transitions

Is it possible to pre-load certain Fragments with the Navigation Architecture Component from Android Jetpack in order to get smooth transitions? Without pre-loading I'll never get smooth transitions for the first navigate() calls (even on high-end…
9
votes
3 answers

Transition from Button to EditText

I want to have a transition in my android views on view is Button and other is EditText, transitions must be like this animation I tried in this way Layout xml is
Arshad Ali
  • 3,082
  • 12
  • 56
  • 99
9
votes
2 answers

How to prevent reverse shared element transition

I have a litle problem. I have a fragment A with a list and an activity B with also a list. Now A and B have an image in common, so I set up an shared element transition and it works on the way from A to B. But I don't want to have the reverse…
lampenlampen
  • 947
  • 6
  • 21
9
votes
2 answers

Canceling shared element transition

I have two activities (A and B), and when I click on a button, element from A start animated transition to B. However, I want to disable that same transition playing backwards when going back from B to A. Before asking this question, I researched on…
Milovan Jovic
  • 265
  • 3
  • 16
9
votes
2 answers

ViewRootImpl.setPausedForTransition(boolean) NullPointerException in ActivityTransitionCoordinator when transition to other Activity invoked too early

In my Android app, I have a splash screen where I do some setup and loading. My app uses default explode as a windowEnterTransition and a windowExitTransition and a changeImageTransform plus changeBounds transition set as a…
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
2 answers

`setEnterTransition` only works with `ActivityCompat.startActivity`

I want to add an enter transition to the next activity. So I did: getWindow().requestFeature(Window.FEATURE_ACTIVITY_TRANSITIONS); window.setEnterTransition(new Slide()); This doesn't seem to work. After doing some trial and error (as I had this…
Boy
  • 7,010
  • 4
  • 54
  • 68
9
votes
3 answers

Scene transition with nested shared element

I'm trying to use the Transitions API to animate a shared element between two ViewGroups. The goal is that the green view travels 'out of its parent's bounds' towards the new position. I have the following layouts: first.xml:
nhaarman
  • 98,571
  • 55
  • 246
  • 278
9
votes
2 answers

Why Transition.captureStartValues and Transition.captureEndValues have the same View with same attributes?

I have a custom Transition used in shared elements between my two Activities. My transition doesn't work because the TransitionValues parameters has the same View with same attributes in both methods, captureStartValues and captureEndValues. So, my…
André Mion
  • 843
  • 9
  • 10
9
votes
2 answers

onClick does not work after transition

I am trying to learn simple TransitionManager work, but I'm stuck little bit... My goal is make changing between two scenes by image clicking. But after first image click and first scene change, i can not catch image click... here is my fragment…
Stan Malcolm
  • 2,740
  • 5
  • 32
  • 53