【开源】Swipe_RecyclerView
Swipe_RecyclerView
- https://github.com/rahulrj/Swipe_RecyclerView
介绍:
滚动视图的滑动菜单,这个项目是根据47deg的android-swipelistview修改而来的,使用RecyclerView修改,比原有的更灵活。运行效果:
![]()
使用说明:
47deg的android-swipelistview地址:http://jcodecraeer.com/a/opensource/2014/1015/1777.html
使用说明:
xml
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<com.fortysevendeg.swipelistview.SwipeListView android:id="@+id/example_lv_list" android:listSelector="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" swipe:swipeFrontView="@+id/front" swipe:swipeBackView="@+id/back" swipe:swipeActionLeft="[reveal | dismiss]" swipe:swipeActionRight="[reveal | dismiss]" swipe:swipeMode="[none | both | right | left]" swipe:swipeCloseAllItemsWhenMoveList="[true | false]" swipe:swipeOpenOnLongPress="[true | false]" swipe:swipeAnimationTime="[miliseconds]" swipe:swipeOffsetLeft="[dimension]" swipe:swipeOffsetRight="[dimension]" /> |
-
swipeFrontView- Required - front view id. 即ListView Item正常显示的控件Id,且必须与Item的布局文件中的控件id一样 -
swipeBackView- Required - back view id. 手指滑动时显示的,隐藏在FrontView后面,且必须与item的布局文件中控件Id一样 -
swipeActionLeft- Optional - left swipe action Default: 'reveal' 左滑的动作,默认reveal,即显示BackView,还有dismiss,choice会触发响应的方法。 -
swipeActionRight- Optional - right swipe action Default: 'reveal' 同上 -
swipeMode- Gestures to enable or 'none'. Default: 'both' 设置左滑、右滑、都支持 -
swipeCloseAllItemsWhenMoveList- Close revealed items on list motion. Default: 'true' 当滚动listview时,关闭所有展开的Item,最好不要设置为false,由于item的复用,false存在一些问题。 -
swipeOpenOnLongPress- Reveal on long press Default: 'true' 长按时触发显示 -
swipeAnimationTime- item drop animation time. Default: android configuration 动画时间长度 -
swipeOffsetLeft- left offset 左偏移量 -
swipeOffsetRight- right offset 右偏移量 -
posted on 2015-03-30 11:11 wasdchenhao 阅读(662) 评论(0) 收藏 举报

浙公网安备 33010602011771号