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.SlidingUpPanelLayoutandroid:id="@+id/sliding_layout"android:layout_width="match_parent"android:layout_height="match_parent"android:gravity="bottom"><RelativeLayoutandroid:layout_width="match_parent"android:layout_height="match_parent"><!--Yourmaincontentinsidehere--></RelativeLayout><RelativeLayoutandroid:layout_width="match_parent"android:layout_height="match_parent"><!--Yourmainslidingpanelinsidehere--></RelativeLayout></cheesebaron.slidinguppanel.SlidingUpPanelLayout>

Thanks to

  • Umano which have created the Java implementation for Java Android.


了解更多上《IT蓝豹》www.itlanbao.com


更多相关文章

  1. Android公共库——图片缓存 网络缓存 下拉及底部更多ListView 公
  2. Android recyclerview实现查看更多/收起功能
  3. Android ListView列表 刷新和加载更多
  4. Jquery点击加载更多
  5. 《锋利的jQuery》读书笔记 第5章 jQuery对表单、表格的操作及更
  6. 关于jQuery Themeroller主题,我在哪里可以找到更多?
  7. DataTables警告:table id = DataTables_Table_0 - Ajax错误。有
  8. 总结一些更多的针对webkit的HTML, CSS和Javascript方面的特性.
  9. Joomla 3.x“错误检出失败,出现以下错误:”没有更多信息

随机推荐

  1. android四种更新UI进程
  2. Android(安卓)让Tabs显示在底部
  3. android studio svn报错
  4. Android(安卓)OpenMax 调用顺序
  5. android编译系统 - findleaves.sh
  6. Learn To Save and Load External Images
  7. Android(安卓)环境变量
  8. Android(安卓)之 将RAW资源文件写入SD卡
  9. android M 及以上版本将应用添加至忽略电
  10. android中缩放图片的方法