├── .idea ├── .name ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── vcs.xml ├── modules.xml ├── runConfigurations.xml ├── compiler.xml └── gradle.xml ├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable │ │ │ │ ├── arrow_down.png │ │ │ │ ├── arrow_right.png │ │ │ │ ├── arrow_down_selected.png │ │ │ │ ├── arrow_right_selected.png │ │ │ │ ├── background_list_item_parent.xml │ │ │ │ ├── background_list_item_child.xml │ │ │ │ ├── selector_arrow_down.xml │ │ │ │ └── selector_arrow_right.xml │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── styles.xml │ │ │ │ └── dimens.xml │ │ │ └── layout │ │ │ │ ├── child_view.xml │ │ │ │ ├── load_more_view.xml │ │ │ │ ├── activity_group.xml │ │ │ │ ├── group_view.xml │ │ │ │ ├── activity_group_loadmore.xml │ │ │ │ └── activity_main.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── lighters │ │ │ │ └── test │ │ │ │ ├── model │ │ │ │ ├── Group.java │ │ │ │ ├── GroupDrag.java │ │ │ │ └── GroupDragLoadMore.java │ │ │ │ ├── viewholder │ │ │ │ ├── ItemViewHolder.java │ │ │ │ ├── GroupLoadMoreViewHolder.java │ │ │ │ ├── GroupViewHolder.java │ │ │ │ └── GroupDragViewHolder.java │ │ │ │ ├── activity │ │ │ │ ├── MainActivity.java │ │ │ │ ├── GroupActivity.java │ │ │ │ ├── GroupDragActivity.java │ │ │ │ └── GroupLoadMoreActivity.java │ │ │ │ └── adapter │ │ │ │ ├── GroupAdapter.java │ │ │ │ ├── GroupDragAdapter.java │ │ │ │ └── GroupLoadMoreAdapter.java │ │ └── AndroidManifest.xml │ └── androidTest │ │ └── java │ │ └── com │ │ └── lighters │ │ └── test │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── expanddraglibrary ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ └── values │ │ │ │ └── strings.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── lighters │ │ │ │ └── library │ │ │ │ └── expanddrag │ │ │ │ ├── callback │ │ │ │ ├── LoadMoreListener.java │ │ │ │ ├── ExpandCollapseListener.java │ │ │ │ └── DragSelectCallback.java │ │ │ │ ├── Model │ │ │ │ ├── LoadMoreStatus.java │ │ │ │ ├── ParentListItem.java │ │ │ │ └── ParentWrapper.java │ │ │ │ ├── ViewHolder │ │ │ │ ├── ChildViewHolder.java │ │ │ │ ├── LoadMoreViewHolder.java │ │ │ │ └── ParentViewHolder.java │ │ │ │ └── Adapter │ │ │ │ ├── ExpandableRecyclerAdapterHelper.java │ │ │ │ ├── ExpandDragRecyclerAdapter.java │ │ │ │ └── ExpandableRecyclerAdapter.java │ │ └── AndroidManifest.xml │ └── androidTest │ │ └── java │ │ └── com │ │ └── lighters │ │ └── library │ │ └── expanddrag │ │ └── ApplicationTest.java ├── build.gradle └── proguard-rules.pro ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradle.properties ├── .gitignore ├── README.md ├── gradlew.bat └── gradlew /.idea/.name: -------------------------------------------------------------------------------- 1 | ExpandTestDemo -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /expanddraglibrary/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':expanddraglibrary' 2 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alighters/ExpandDragHelper/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable/arrow_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alighters/ExpandDragHelper/HEAD/app/src/main/res/drawable/arrow_down.png -------------------------------------------------------------------------------- /expanddraglibrary/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | ExpandDragLibrary 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/arrow_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alighters/ExpandDragHelper/HEAD/app/src/main/res/drawable/arrow_right.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alighters/ExpandDragHelper/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alighters/ExpandDragHelper/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alighters/ExpandDragHelper/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alighters/ExpandDragHelper/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alighters/ExpandDragHelper/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/arrow_down_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alighters/ExpandDragHelper/HEAD/app/src/main/res/drawable/arrow_down_selected.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/arrow_right_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alighters/ExpandDragHelper/HEAD/app/src/main/res/drawable/arrow_right_selected.png -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Oct 21 11:34:03 PDT 2015 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-2.10-all.zip 7 | -------------------------------------------------------------------------------- /expanddraglibrary/src/main/java/com/lighters/library/expanddrag/callback/LoadMoreListener.java: -------------------------------------------------------------------------------- 1 | package com.lighters.library.expanddrag.callback; 2 | 3 | /** 4 | * Created by david on 16/1/21. 5 | *

6 | * 加载更多的回调 7 | */ 8 | public interface LoadMoreListener { 9 | void loadMore(int parentIndex); 10 | } 11 | -------------------------------------------------------------------------------- /expanddraglibrary/src/main/java/com/lighters/library/expanddrag/Model/LoadMoreStatus.java: -------------------------------------------------------------------------------- 1 | package com.lighters.library.expanddrag.Model; 2 | 3 | /** 4 | * The load more status 5 | *

6 | * Created by david on 16/1/21. 7 | */ 8 | public enum LoadMoreStatus { 9 | 10 | INIT, 11 | LOADING, 12 | FINISH 13 | 14 | } 15 | -------------------------------------------------------------------------------- /expanddraglibrary/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/background_list_item_parent.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | ExpandTestDemo 3 | 4 | collapsed: %s 5 | expanded: %s 6 | 7 | expand_group 8 | expand_drag_group 9 | expand_drag_load_more_group 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | #6a8136 5 | #FFFFFF 6 | #FEFEFE 7 | 8 | #3F51B5 9 | #303F9F 10 | #FF4081 11 | 12 | #000 13 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/lighters/test/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.lighters.test; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/main/res/drawable/background_list_item_child.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /expanddraglibrary/src/androidTest/java/com/lighters/library/expanddrag/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.lighters.library.expanddrag; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/child_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/selector_arrow_down.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 10 | 11 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/selector_arrow_right.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 10 | 11 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/layout/load_more_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 14 | 15 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /expanddraglibrary/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.2" 6 | 7 | defaultConfig { 8 | minSdkVersion 15 9 | targetSdkVersion 23 10 | versionCode 1 11 | versionName "1.0" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | compile fileTree(dir: 'libs', include: ['*.jar']) 23 | compile 'com.android.support:recyclerview-v7:23.0.1' 24 | } 25 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/david/dev/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /expanddraglibrary/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/david/dev/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 15 | 16 |