PocketCasts material update has an awesome transition animation for their list items onClick. Is this done by adding a view/fragment to the existing Coordinator Layout for the activity? Any ideas on how I can implement this?
It's all custom code based around raw touch events with an OnTouchListener, a GestureDetector (onScroll, onFling, etc) and an OverScroller for helping to calculate the velocity things should travel at.
The view itself is just a class that extends FrameLayout which we move up and down in code.
Source: I wrote it ;)
Flipboard have open sourced their bottomsheet implementation.
https://github.com/Flipboard/bottomsheet
It might be worth checking it out before you try to write your own version, @rustyshelf is a genius and it is near impossible. ;)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With