How does PocketCasts perform this transition / effect?

Material updates PocketCasts has amazing transition animations for onClick list items. Is this done by adding a view / fragment to the existing coordinator scheme for this activity? Any ideas on how I can implement this?

LEFT: Shown upon clickin a list item. "Pops up" from bottom. RIGHT: Scrolling the "pop up" brings it to cover the whole screen

+6
source share
2 answers

All user codes based on raw touch events, with OnTouchListener, GestureDetector (onScroll, onFling, etc.) and OverScroller, to help calculate the speed, should be moved.

The view itself is just a class that extends FrameLayout, which we move up and down in the code.

Source: I wrote this;)

+17
source

Flipboard has opened the original version of its bottom.

https://github.com/Flipboard/bottomsheet

Maybe you should check this out before trying to write your own version, @rustyshelf is a genius, and it's almost impossible.;)

+5
source

Source: https://habr.com/ru/post/990041/


All Articles