文件名称:BidirSlidingLayout

  • 所属分类:
  • android开发
  • 资源属性:
  • [Android] [Java] [源码]
  • 上传时间:
  • 2014-04-16
  • 文件大小:
  • 998kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • rpu****
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

BidirSlidingLayoutAndroid双向滑动菜单,在滑动菜单Demo主Activity内,进行双向滑动菜单布局,在内容布局上显示的ListView,配置ListView的适配器,用于填充contentListAdapter的数据源等。BidirSlidingLayout.java为双向滑动菜单框架,在这里可以设置滚动显示和隐藏左侧布局时,手指滑动需要达到的速度、记录当前的滑动状态、是否正在滑动等。左侧和右侧菜单当前是显示还是隐藏。只有完全显示或隐藏时才会更改此值,滑动过程中此值无效。

  代码中重写BidirSlidingLayout的构造函数,其中获取了屏幕的宽度和touchSlop的值,绑定监听滑动事件的View。

  代码中还判断是否应该从右侧菜单滚动到内容布局,如果手指移动距离大于右侧菜单宽度的1/2,或者手指移动速度大于SNAP_VELOCITY,就认为应该从右侧菜单滚动到内容布局。@return 如果应该从右侧菜单滚动到内容布局返回true,否则返回false-BidirSlidingLayoutAndroid two-way sliding menu , sliding menu Demo in the main Activity, two-way sliding menu layout , ListView layout is displayed in the content , configure ListView adapter for filling contentListAdapter data sources. BidirSlidingLayout.java fr a mework for the two-way sliding menu , where you can set the scrolling display and hide the left side of the layout , the need to reach a finger sliding speed, record the current status of the slide , whether it is slipping . The left and right of the menu is currently displayed or hidden. Only complete show or hide only change this value , this value is not valid during the slide .

Rewriting the code constructor BidirSlidingLayout which takes the value of the width and touchSlop screen , slide the binding event listeners View.

Code should also determine whether the contents of the scroll from the right menu to the layout , if the finger movement distance greater than the width of the right of the menu 1/ 2 , or fingers movin
(系统自动生成,下载前可以参看下载内容)

下载文件列表





BidirSlidingLayout\.classpath

..................\.project

..................\AndroidManifest.xml

..................\bin\AndroidManifest.xml

..................\...\BidirSlidingLayout.apk

..................\...\classes\com\example\bidirslidinglayout\BidirSlidingLayout$LeftMenuScrollTask.class

..................\...\.......\...\.......\..................\BidirSlidingLayout$RightMenuScrollTask.class

..................\...\.......\...\.......\..................\BidirSlidingLayout.class

..................\...\.......\...\.......\..................\BuildConfig.class

..................\...\.......\...\.......\..................\MainActivity.class

..................\...\.......\...\.......\..................\R$attr.class

..................\...\.......\...\.......\..................\R$dimen.class

..................\...\.......\...\.......\..................\R$drawable.class

..................\...\.......\...\.......\..................\R$id.class

..................\...\.......\...\.......\..................\R$layout.class

..................\...\.......\...\.......\..................\R$menu.class

..................\...\.......\...\.......\..................\R$string.class

..................\...\.......\...\.......\..................\R$style.class

..................\...\.......\...\.......\..................\R.class

..................\...\classes.dex

..................\...\dexedLibs\android-support-v4-cd0bcb705e4459eaa6cf7902e4dfc5a4.jar

..................\...\.........\annotations-7e80f6f7c9d949b206a3796ca0225e80.jar

..................\...\jarlist.cache

..................\...\res\drawable-hdpi\ic_launcher.png

..................\...\...\.........mdpi\ic_launcher.png

..................\...\...\.........xhdpi\ic_launcher.png

..................\...\...\..........xhdpi\ic_launcher.png

..................\...\resources.ap_

..................\gen\com\example\bidirslidinglayout\BuildConfig.java

..................\...\...\.......\..................\R.java

..................\ic_launcher-web.png

..................\libs\android-support-v4.jar

..................\proguard-project.txt

..................\project.properties

..................\res\drawable-hdpi\ic_launcher.png

..................\...\.........mdpi\ic_launcher.png

..................\...\.........xhdpi\ic_launcher.png

..................\...\..........xhdpi\ic_launcher.png

..................\...\layout\activity_main.xml

..................\...\menu\main.xml

..................\...\values\dimens.xml

..................\...\......\strings.xml

..................\...\......\styles.xml

..................\...\......-sw600dp\dimens.xml

..................\...\.........720dp-land\dimens.xml

..................\src\com\example\bidirslidinglayout\BidirSlidingLayout.java

..................\...\...\.......\..................\MainActivity.java

..................\bin\classes\com\example\bidirslidinglayout

..................\...\.......\...\example

..................\gen\com\example\bidirslidinglayout

..................\src\com\example\bidirslidinglayout

..................\bin\classes\com

..................\...\res\drawable-hdpi

..................\...\...\drawable-mdpi

..................\...\...\drawable-xhdpi

..................\...\...\drawable-xxhdpi

..................\gen\com\example

..................\src\com\example

..................\bin\classes

..................\...\dexedLibs

..................\...\res

..................\gen\com

..................\res\drawable-hdpi

..................\...\drawable-ldpi

..................\...\drawable-mdpi

..................\...\drawable-xhdpi

..................\...\drawable-xxhdpi

..................\...\layout

..................\...\menu

..................\...\values

..................\...\values-sw600dp

..................\...\values-sw720dp-land

..................\src\com

..................\assets

..................\bin

..................\gen

..................\libs

..................\res

..................\src

BidirSlidingLayout

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org