SlidingUpPanel

SlidingUpPanel

SlidingUpPanel is a port of AndroidSlidingUpPanel to Xamarin.Android.

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.

Get it in the Xamarin Component store!

animation

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 tomatch_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>

原文出自IT蓝豹:http://www.itlanbao.com,请转载时明标注出处,谢谢!    
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值