taltstidl / AndroidSlidingUpPanel

This library provides a simple way to add a draggable sliding up panel (popularized by Google Music and Google Maps) to your Android application. Brought to you by Umano.
http://umano.me
Apache License 2.0
13 stars 6 forks source link

Make the Floating Action Button follow the panel, and hide it when it gets near the top of the screen #7

Closed flyingtoaster0 closed 9 years ago

flyingtoaster0 commented 9 years ago

The button will now sit at the bottom of the screen when the SlidingUpPanel is hidden. In any other state, the button will move along with the panel (TR4Android/AndroidSlidingUpPanel#6)

When the panel y position is less than or greater than 1/8 of the screen height, the button will show or hide appropriately (TR4Android/AndroidSlidingUpPanel#4)

My goal was to make the behaviour as close to that of Google Maps as possible :)