GitHub license Build Status

Note: Because origin maintainer currently does not merge PR's, I collect some of them in this repository

Android Sliding Up Panel

This library provides a simple way to add a draggable sliding up panel (popularized by Google Music and Google Maps) to your Android application.


Importing the Library

Simply add the following dependency to your build.gradle file to use the latest version:

allprojects {
    repositories {
        maven { url '' }
dependencies {
    implementation 'com.github.hannesa2:AndroidSlidingUpPanel:4.2.0' // Android X

    // or
    implementation 'com.github.hannesa2:AndroidSlidingUpPanel:3.5.0' // supportLib


For more information, please refer to the sample code.


        android:text="Main Content"
        android:textSize="16sp" />

        android:text="The Awesome Sliding Up Panel"
        android:textSize="16sp" />

For smooth interaction with the ActionBar, make sure that windowActionBarOverlay is set to true in your styles:

<style name="AppTheme">
    <item name="android:windowActionBarOverlay">true</item>

However, in this case you would likely want to add a top margin to your main layout of ?android:attr/actionBarSize or ?attr/actionBarSize to support older API versions.

Caveats, Additional Features and Customization

Scrollable Sliding Views

If you have a scrollable view inside of the sliding panel, make sure to set umanoScrollableView attribute on the panel to supported nested scrolling. The panel supports ListView, ScrollView and RecyclerView out of the box, but you can add support for any type of a scrollable view by setting a custom ScrollableViewHelper. Here is an example for NestedScrollView

public class NestedScrollableViewHelper extends ScrollableViewHelper {
  public int getScrollableViewScrollPosition(View scrollableView, boolean isSlidingUp) {
    if (mScrollableView instanceof NestedScrollView) {
        return mScrollableView.getScrollY();
      } else {
        NestedScrollView nsv = ((NestedScrollView) mScrollableView);
        View child = nsv.getChildAt(0);
        return (child.getBottom() - (nsv.getHeight() + nsv.getScrollY()));
    } else {
      return 0;

Once you define your helper, you can set it using setScrollableViewHelper on the sliding panel.


Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.