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.
A Java library for Android that adds a draggable bottom panel, like the info strip in Google Maps, which slides up to reveal a full detail view, with parallax effects, anchor points, and scroll support inside the panel.
Android Sliding Up Panel is a Java library for Android apps that adds a panel anchored to the bottom of the screen which the user can drag upward to expand. You have probably seen this pattern in apps like Google Maps, where a small info strip sits at the bottom and sliding it up reveals a full detail view, or in music apps where a mini player at the bottom expands into the full player. This library gives Android developers a ready-made version of that interaction without needing to build it from scratch.
To use it, you wrap your existing screen layout with a special container element from the library. That container expects exactly two child views: the first is your main screen content, and the second is the panel that will slide up over it. The panel starts as a partially visible strip at the bottom and expands when the user drags it. You control how tall that initial strip is, what the expanded state looks like, and whether the panel overlaps the main content or pushes it out of the way.
The library includes a range of customization options. You can restrict dragging to a specific part of the panel rather than the whole surface, add a parallax effect to the background as the panel moves, set an intermediate anchor point partway up the screen (like Google Maps does), and control the dimming of the background content as the panel expands. There is also support for scrollable content inside the panel, such as lists or scroll views, so that scrolling within the panel does not conflict with the dragging gesture.
The panel state can be read and changed from code, and you can attach a listener to respond when the panel moves or reaches a new state. The library also supports sliding down from the top instead of up from the bottom by changing one layout attribute.
The README notes that the project is no longer actively maintained and that bug reports should come as pull requests rather than issues. It has been used in apps including Soundcloud and Dropbox Paper.
Where it fits
- Add a Google Maps-style sliding info panel to an Android navigation or location app
- Build a music player where a mini player strip at the bottom expands into a full playback screen
- Create a detail view that slides up over a map or list without replacing the current screen