8 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
5 star 5
4 star 2
3 star 1
2 star 0
1 star 0
Compatible with
  • Android

SlidingUpPanel 1.0.5

Tomasz Cielecki

A panel that slides out from the bottom or top of the screen.

Add an awesome draggable panel that slides up from either the bottom or top of your screen. Use it to show more details, reveal music player controls or whatever you want. This type of panel is also used in apps such as Google Music and Rdio.

Key features

  • Customizable height
  • Customizable shadow
  • Restrict draggable area of panel to
    • A visible view
    • An anchor point
  • Listen to events when dragging the panel
  • Switch between sliding from top or bottom

Requirements

This library uses Android Support v4, and it is tested on Android 2.2 and above.

Usage

To use it, add the component and in your layout simply wrap your layouts with cheesebaron.slidinguppanel.SlidingUpPanelLayout. It supports two children. The first child is your content layout. The second child is your layout for the sliding up panel. Both children should have their height set to match_parent.

<cheesebaron.slidinguppanel.SlidingUpPanelLayout
    android:id="@+id/sliding_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="bottom">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <!-- Your main content inside here -->
    </RelativeLayout>

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <!-- Your main sliding panel inside here -->
    </RelativeLayout>
</cheesebaron.slidinguppanel.SlidingUpPanelLayout>

The project is Open Source and can be forked on GitHub.

Release Notes

  • Fixed issue with apps crashing when going into background
  • Built against latest Xamarin Support pacakges
  • Updated Sample
  • Removed permissions hardcoded in AssemblyInfo
  • Fixed package dependencies
Write a Review

3 reviews

Kapil Kelaiya

Hello,

Has anyone got this working from top to bottom? After changing gravity, the slider disappears. Do we need different markup for that? Can someone post an example of pull from top?

Thanks,

Kapil

Posted on: February 9 / Version: 1.0.5
Sandor Serestyen rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

Hi @Cheesebaron,

If you could release this component with the applied fix ( ( https://github.com/Cheesebaron/SlidingUpPanel/issues/8 ), that would be great.

Thanks

Posted on: November 14, 2016 / Version: 1.0.1
John Rowse rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

Hi

Is there any chance you can update this awesome component with the changes in the most up to date Git branch? ( Solving issue Crash when app goes in background #8 )

Thanks

Posted on: November 4, 2016 / Version: 1.0.1