DevBytes: Sliding Fragments
Why Stack Overflow recommends it
Stack Overflow users link it when answering how to do custom Fragment transitions and when referring to its FractionalLinearLayout sample and the xFraction and yFraction animatable properties.
Recommended by 1 people across 1 different months, 2013 to 2015.
What it is
A short DevBytes episode from the Android Developers channel showing several ways to animate the transition between two Fragments, with a sliding effect built using ObjectAnimator and a custom layout. A downloadable code sample accompanies the video.
What people said
Recommends Krzysztof Skrzynecki · 2015-01 · Stack Overflow · on “Item explode() transition in older devices”
Well, IMHO opening another Activity only for details is even worse idea. Maybe try to show Fragment with those detais above and use Fragment custom transition: [this video]
Cites Barend · 2013-11 · Stack Overflow · on “Android skips onDraw() when I run my animation in reverse”
I have an implementation of the Sliding Fragments DevByte [this video] . In addition to sliding the fragment into view, I want to draw a shadow over the content that it's occluding. I have modified the FractionalLinearLayout from the video to measure itself at twice the screen width and layout its children in the right half. During the animation loop, I draw a black rectangle of increasing alpha in the left half and set my X-coordinate to a negative value to bring the right half into view. My problem is that this works fine when I'm sliding the content into view, but fails when I'm sliding the content back out of view. On the way in, I get exactly the behaviour I want: a translation and a darkeni
Cites Matthieu Harlé · 2014-09 · Stack Overflow · on “Android properties that can be animated with ObjectAnimator”
The list is not complete, there's at list "xFraction" and "yFraction" that works (saw in DevBytes Sliding Fragments sample [this video] )