DevBytes: Custom Activity Animations
Why Stack Overflow recommends it
Stack Overflow users link it when answering how to do shared-element or custom activity transitions on Android versions before Lollipop's built-in transition APIs.
Recommended by 17 people across 15 different months, 2014 to 2017.
What it is
An Android Developers DevBytes episode in which Chet Haase shows how to build fully customizable transitions between activities, including a shared-element effect, instead of relying on standard window animations. It includes downloadable sample code and ties into the Google I/O 2013 talk 'A Moving Experience'.
What people said
Recommends Budius · 2014-01 · Stack Overflow · on “Launching activity with animation Service”
on this DevByte [this video] Chet Haase (one of the Android engineers working on the animation framework) shows some extras parameters that can be added to the intent starting from JellyBean only that would possibly work from a Service. I suggest giving it a try. and here there's a class from the support library that helps on some of those stuff: [LINK]
Recommends matiash · 2014-07 · Stack Overflow · on “How do I learn to design a UI like this?”
This is probably an instance of a custom activity transition (and a particularly well polished one). In general, you can use the overridePendingTransition() [LINK] to specify an animation that must be run when the current activity is changed (a classic example is sliding in a new Activity from a direction, while the previous Activity exits in the opposite direction). However, these transitions generally do not share UI elements. Chet Haase has done a few DevBytes (in particular this one [this video] ) to "simulate" an activity transition that shares an UI element (i.e. a view) between the caller and called activities. For example, if you have a Gallery, and you click on an image to show it full-s
Recommends Or Bar · 2014-08 · Stack Overflow · on “How can I start activity with android material design animation on android”
Yes, there is a way, and It looks super slick. It basically involves 4 steps: 1. Make 2nd activity transparent 2. Measure the size and position of the view you want to animate in the 1st activity and pass it to the 2nd activity in a bundle 3. animate the layout change in the 2nd activity using the onPreDraw lister and data from 1st activity. 4. Overwrite the default Activity transitions check out this DevByte [this video] , It explains exactly how to do it.
Recommends Xaver Kapeller · 2014-08 · Stack Overflow · on “How to animate a 'cloned', duplicate version of existing android View”
I think you can get around using a DecorView by setting setClipChildren() to false on all the parents of the ImageView . This allows you to animate a View from your layout even outside of its parent (and even Activity ). I mostly use a helper method to do this: public static void setClipView(View view, boolean clip) { if (view != null) { ViewParent parent = view.getParent(); if(parent instanceof ViewGroup) { ViewGroup viewGroup = (ViewGroup) view.getParent(); viewGroup.setClipChildren(clip); setClipView(viewGroup, clip); } } } So just use this method on your ImageView like this: LayoutHelper.setClipView(imageView, false); To animate the View itself you should use the new animation API introd
Recommends vokilam · 2014-08 · Stack Overflow · on “How can I start new activity as an expended circle from center”
I'm not sure if it is possible with transition animations. Maybe it is possible to achieve desired result in following way: Make a screenshot of Activity A before transition Transit to activity B without animation Overlay Activity A screenshot on Activity B Animate the overlay (apply custom drawing) or Make an activity B transparent Transit to Activity B without animation Animate Activity B layout (apply custom drawing) See also: DevBytes: Custom Activity Animations [this video]
Recommends Damian Petla · 2014-08 · Stack Overflow · on “TextViews to be slide out when when activity change”
I suggest watching Custom Activity Animations [this video] from Google's DevBytes series. An expert from Google, Chet Haase, explains in details how to deal Activity transition animations. Below the video you will also find link to the source code of the presented example. If you are interested in more Android animations, checkout the rest of DevBytes series episodes.
Recommends Alex Lockwood · 2014-11 · Stack Overflow · on “Android shared elements transition pre-21”
There is no compatibility libraries that support shared element transitions. The best you can do is use the approach described in this video [this video] ... however, note that it takes a lot more code to implement.
Recommends George Mount · 2014-12 · Stack Overflow · on “android 5 activity transition on lower api”
We added a lot of stuff in Lollipop to make Activity Transitions work well. It is possible to do Activity Transitions manually (in earlier versions), but you will encounter problems in some cases and the return transition is likely going to work only in the simplest case. Chet Haase has a devbyte on this here [this video] . Animations between fragments were possible earlier, though the API isn't as easy to use as in Lollipop's Fragment Transitions. We thought a lot about back porting transitions to earlier versions in the support library. It may still happen. If so, we should also be able to do something for Fragment Transitions.
Recommends Shudy · 2015-04 · Stack Overflow · on “How to animate floating action button using android activity transition?”
I have found some vids on youtube, from "DevBytes Channel". Ussually the videos of `Chet Haase` talks about transitions. I post you here one vid, but there's a lot. [this video]
Recommends Johann · 2015-07 · Stack Overflow · on “How to Animate Addition or Removal of Android ListView Rows”
While this animates the view, the height of the view remains the same until the animation ends. A more professional solution would reduce the height of the row during animation. A more convoluted solution that does that can be found at: [this video]