├── sample ├── .gitignore ├── src │ └── main │ │ ├── res │ │ ├── mipmap-xxhdpi │ │ │ ├── header.jpg │ │ │ ├── ic_launcher.png │ │ │ ├── ic_action_add.png │ │ │ ├── ic_action_close.png │ │ │ ├── ic_action_delete.png │ │ │ ├── ic_action_wechat.png │ │ │ └── ic_action_module_black.png │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ ├── values │ │ │ ├── strings.xml │ │ │ ├── dimens.xml │ │ │ ├── colors.xml │ │ │ ├── styles.xml │ │ │ └── array.xml │ │ ├── drawable │ │ │ ├── select_white.xml │ │ │ ├── selector_red.xml │ │ │ ├── selector_green.xml │ │ │ └── selector_purple.xml │ │ ├── layout │ │ │ ├── layout_footer.xml │ │ │ ├── fragment_menu.xml │ │ │ ├── layout_fotter_loadmore.xml │ │ │ ├── item_menu_sticky.xml │ │ │ ├── item_menu_main.xml │ │ │ ├── item_menu_vertical.xml │ │ │ ├── toolbar.xml │ │ │ ├── activity_scroll.xml │ │ │ ├── layout_header.xml │ │ │ ├── toolbar_scroll.xml │ │ │ ├── layout_header_switch.xml │ │ │ ├── activity_refresh_loadmore.xml │ │ │ ├── activity_group_menu.xml │ │ │ ├── item_menu_define.xml │ │ │ ├── item_drag_touch.xml │ │ │ ├── activity_menu_pager_.xml │ │ │ ├── item_menu_card.xml │ │ │ ├── activity_menu_drawer.xml │ │ │ └── activity_menu_define.xml │ │ └── menu │ │ │ └── menu_all_activity.xml │ │ ├── java │ │ └── com │ │ │ └── yanzhenjie │ │ │ └── recyclerview │ │ │ └── swipe │ │ │ └── sample │ │ │ ├── App.java │ │ │ ├── adapter │ │ │ ├── BaseAdapter.java │ │ │ ├── MainAdapter.java │ │ │ └── DragTouchAdapter.java │ │ │ ├── activity │ │ │ ├── group │ │ │ │ ├── GroupActivity.java │ │ │ │ └── LayoutActivity.java │ │ │ ├── load │ │ │ │ └── RefreshLoadActivity.java │ │ │ ├── nested │ │ │ │ ├── NestedActivity.java │ │ │ │ ├── CardViewActivity.java │ │ │ │ ├── ViewPagerActivity.java │ │ │ │ └── DrawerActivity.java │ │ │ ├── move │ │ │ │ ├── MoveActivity.java │ │ │ │ ├── DragTouchListActivity.java │ │ │ │ ├── DragSwipeListActivity.java │ │ │ │ └── DragGridActivity.java │ │ │ ├── menu │ │ │ │ ├── MenuActivity.java │ │ │ │ ├── DefineActivity.java │ │ │ │ ├── ListActivity.java │ │ │ │ └── GridActivity.java │ │ │ ├── MainActivity.java │ │ │ ├── BaseActivity.java │ │ │ └── header │ │ │ │ └── HeaderViewActivity.java │ │ │ └── fragment │ │ │ └── MenuFragment.java │ │ └── AndroidManifest.xml └── build.gradle ├── recyclerview-swipe ├── .gitignore ├── build.gradle └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ ├── com │ │ └── yanzhenjie │ │ │ └── recyclerview │ │ │ └── swipe │ │ │ ├── widget │ │ │ ├── GridItemDecoration.java │ │ │ ├── ListItemDecoration.java │ │ │ └── DefaultLoadMoreView.java │ │ │ ├── SwipeItemClickListener.java │ │ │ ├── SwipeMenuItemClickListener.java │ │ │ ├── SwipeMenuCreator.java │ │ │ ├── touch │ │ │ ├── OnItemMoveListener.java │ │ │ ├── OnItemMovementListener.java │ │ │ ├── OnItemStateChangedListener.java │ │ │ └── DefaultItemTouchHelper.java │ │ │ ├── SwipeHorizontal.java │ │ │ ├── SwipeLeftHorizontal.java │ │ │ ├── SwipeRightHorizontal.java │ │ │ ├── SwipeSwitch.java │ │ │ ├── SwipeMenuBridge.java │ │ │ ├── SwipeMenu.java │ │ │ ├── SwipeMenuItem.java │ │ │ └── SwipeMenuView.java │ └── android │ │ └── support │ │ └── v7 │ │ └── widget │ │ └── helper │ │ └── CompatItemTouchHelper.java │ └── res │ ├── values │ ├── attrs.xml │ ├── colors.xml │ └── strings.xml │ ├── values-zh │ └── strings.xml │ ├── values-zh-rHK │ └── strings.xml │ ├── values-zh-rTW │ └── strings.xml │ └── layout │ ├── recycler_swipe_view_load_more.xml │ └── recycler_swipe_view_item.xml ├── settings.gradle ├── image ├── 1.gif ├── 2.gif ├── 3.gif ├── 4.gif ├── 5.gif ├── 6.gif ├── 7.gif ├── 8.gif ├── 9.gif ├── 10.gif └── 11.gif ├── .gitignore ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradle.properties ├── config.gradle ├── gradlew.bat └── gradlew /sample/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /recyclerview-swipe/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':sample', ':recyclerview-swipe' 2 | -------------------------------------------------------------------------------- /image/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/image/1.gif -------------------------------------------------------------------------------- /image/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/image/2.gif -------------------------------------------------------------------------------- /image/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/image/3.gif -------------------------------------------------------------------------------- /image/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/image/4.gif -------------------------------------------------------------------------------- /image/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/image/5.gif -------------------------------------------------------------------------------- /image/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/image/6.gif -------------------------------------------------------------------------------- /image/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/image/7.gif -------------------------------------------------------------------------------- /image/8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/image/8.gif -------------------------------------------------------------------------------- /image/9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/image/9.gif -------------------------------------------------------------------------------- /image/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/image/10.gif -------------------------------------------------------------------------------- /image/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/image/11.gif -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea 5 | .DS_Store 6 | /build 7 | /captures 8 | .externalNativeBuild 9 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-xxhdpi/header.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/sample/src/main/res/mipmap-xxhdpi/header.jpg -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/sample/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/sample/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/sample/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/sample/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-xxhdpi/ic_action_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/sample/src/main/res/mipmap-xxhdpi/ic_action_add.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/sample/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-xxhdpi/ic_action_close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/sample/src/main/res/mipmap-xxhdpi/ic_action_close.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-xxhdpi/ic_action_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/sample/src/main/res/mipmap-xxhdpi/ic_action_delete.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-xxhdpi/ic_action_wechat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/sample/src/main/res/mipmap-xxhdpi/ic_action_wechat.png -------------------------------------------------------------------------------- /sample/src/main/res/mipmap-xxhdpi/ic_action_module_black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weileng11/SwipeRecyclerView-master/HEAD/sample/src/main/res/mipmap-xxhdpi/ic_action_module_black.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Dec 12 18:31:40 CST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip 7 | -------------------------------------------------------------------------------- /recyclerview-swipe/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: rootProject.ext.plugins.library 2 | 3 | android { 4 | 5 | compileSdkVersion rootProject.ext.android.compileSdkVersion 6 | buildToolsVersion rootProject.ext.android.buildToolsVersion 7 | 8 | defaultConfig { 9 | minSdkVersion rootProject.ext.android.minSdkVersion 10 | targetSdkVersion rootProject.ext.android.targetSdkVersion 11 | } 12 | 13 | resourcePrefix 'recycler_swipe_' 14 | } 15 | 16 | dependencies { 17 | compile rootProject.ext.dependencies.recyclerView 18 | compile rootProject.ext.dependencies.loading 19 | } 20 | 21 | apply from: "https://github.com/yanzhenjie/bintray/blob/master/maven-auto.gradle?raw=true" -------------------------------------------------------------------------------- /recyclerview-swipe/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | -------------------------------------------------------------------------------- /sample/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | SwipeRecyclerView 19 | 20 | -------------------------------------------------------------------------------- /sample/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: rootProject.ext.plugins.application 2 | 3 | android { 4 | compileSdkVersion rootProject.ext.android.compileSdkVersion 5 | buildToolsVersion rootProject.ext.android.buildToolsVersion 6 | 7 | defaultConfig { 8 | applicationId rootProject.ext.android.applicationId 9 | minSdkVersion rootProject.ext.android.minSdkVersion 10 | targetSdkVersion rootProject.ext.android.targetSdkVersion 11 | versionCode rootProject.ext.android.versionCode 12 | versionName rootProject.ext.android.versionName 13 | } 14 | } 15 | 16 | dependencies { 17 | compile rootProject.ext.dependencies.swipeRecyclerView 18 | compile rootProject.ext.dependencies.design 19 | compile rootProject.ext.dependencies.appCompat 20 | compile rootProject.ext.dependencies.cardView 21 | compile rootProject.ext.dependencies.loading 22 | } -------------------------------------------------------------------------------- /recyclerview-swipe/src/main/java/com/yanzhenjie/recyclerview/swipe/widget/GridItemDecoration.java: -------------------------------------------------------------------------------- 1 | /* 2 | * AUTHOR:YanZhenjie 3 | * 4 | * DESCRIPTION:create the File, and add the content. 5 | * 6 | * Copyright © www.mamaqunaer.com. All Rights Reserved 7 | * 8 | */ 9 | package com.yanzhenjie.recyclerview.swipe.widget; 10 | 11 | import android.support.annotation.ColorInt; 12 | 13 | /** 14 | * Created by YanZhenjie on 2017/7/6. 15 | * 16 | * @deprecated use {@link DefaultItemDecoration} instead. 17 | */ 18 | @Deprecated 19 | public class GridItemDecoration extends DefaultItemDecoration { 20 | 21 | public GridItemDecoration(@ColorInt int color) { 22 | super(color); 23 | } 24 | 25 | public GridItemDecoration(@ColorInt int color, int dividerWidth, int dividerHeight, int... excludeViewType) { 26 | super(color, dividerWidth, dividerHeight, excludeViewType); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /sample/src/main/res/drawable/select_white.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /sample/src/main/res/drawable/selector_red.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /sample/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 200dp 19 | 100dp 20 | 70dp 21 | 10dp 22 | 2dp 23 | 24 | -------------------------------------------------------------------------------- /sample/src/main/res/drawable/selector_green.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /sample/src/main/res/drawable/selector_purple.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /sample/src/main/res/layout/layout_footer.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 |