Android Sliding Up Panel

sliding up panel for android java

This is a sexy sliding up draggable panel. This type of a panel is a common pattern also used in the Google Music app and the Rdio app. This is an open source implementation of this component that you are free to take advantage of in your apps.

The Panel is developed by Umano Team for Umano Android App used for playing article.

Usage

To use the layout, simply include com.sothree.slidinguppaneldemo.SlidingUpPanelLayout as the Root element in your activity Layout. 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. Both children should have width and height set to match_parent. For more information, please refer to the sample code.

<com.sothree.slidinguppaneldemo.SlidingUpPanelLayout
    android:id="@+id/sliding_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <TextView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:gravity="center"
        android:text="Main Content"
        android:textSize="16sp" />

    <TextView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:gravity="center|top"
        android:text="The Awesome Sliding Up Panel"
        android:textSize="16sp" />
</com.sothree.slidinguppaneldemo.SlidingUpPanelLayout>

Check it out

Related Articles

  • Ankit

    The code is really cool but the click events have been overriden to close the sliding panel,how can i change this to enable onclick on buttons and other objects inside sliding panel?