AndroidSlidingUpPanel modification for Foursquare-like map support with ListView
Java Groovy
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 1 commit ahead, 239 commits behind umano:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Android Sliding Up Panel

This library provides a simple way to add a draggable sliding up panel (popularized by Google Music, Google Maps and Rdio) to your Android application. Umano Team <3 Open Source.

As seen in Umano Android app:



To use the library, include the library project as a dependency in Eclipse or you just add the following dependency to your build.gradle file if you are using Android Studio:

dependencies {  
    repositories {
    compile 'com.sothree.slidinguppanel:library:+'

Then, simply include com.sothree.slidinguppanel.SlidingUpPanelLayout as the Root element in your activity Layout. Layout must have gravity set to either top or bottom. Make sure that it has two children. The first child is your main layout. The second child is your layout for the sliding up panel. The main layout should have the width and the height set to match_parent. The sliding layout should have the width set to match_parent and the height set to either match_parent or the max desireable height. 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.

Additional Features and Customization

You can restrict the drag area of the sliding panel to a specific view by using the setDragView method or dragView attribute. Otherwise, the whole panel will be slideable and it will intercept all clicks.

You can change the panel height by using the setPanelHeight method or panelHeight attribute.

If you would like to hide the shadow above the sliding panel, set shadowHeight attribute to 0.

You can disable sliding by using setSlidingEnabled method. This can be useful if you want to show\hide panel only from the code. By default sliding is enabled.

You can add paralax to the main view by setting paralaxOffset attribute (see demo for the example).

You can set a anchor point in the middle of the screen using setAnchorPoint to allow an intermediate expanded state for the panel (similar to Google Maps).

You can set a PanelSlideListener to monitor events about sliding panes.

You can also make the panel slide from the top by changing the layout_gravity attribute of the layout to top.

By default, the panel pushes up the main content. You can make it overlay the main content by using setOverlayed method or overlay attribute. This is useful if you would like to make the sliding layout semi-transparent.


This code is heavily based on the opened-sourced SlidingPaneLayout component from the r13 of the Android Support Library. Thanks Android team!


Tested on Android 2.2+

Other Contributors

Jan 21, 14 - ChaYoung You (@yous) - Slide from the top support

Aug 20, 13 - (@gipi) - Android Studio Support

Jul 24, 13 - Philip Schiffer (@hameno) - Maven Support

Oct 20, 13 - Irina Preșa (@iriina) - Anchor Support

Dec 1, 13 - (@youchy) - XML Attributes Support

Dec 22, 13 - Vladimir Mironov (@mironov-nsk) - Custom Expanded Panel Height

If you have an awesome pull request, send it over!


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.