diff --git a/SuperRecyclerView-sample/build.gradle b/SuperRecyclerView-sample/build.gradle
index 016a3b7..88fc4c5 100644
--- a/SuperRecyclerView-sample/build.gradle
+++ b/SuperRecyclerView-sample/build.gradle
@@ -23,6 +23,7 @@ dependencies {
compile project(':SuperRecyclerView')
compile libraries.supportAppCompat
+ compile libraries.supportDesign
compile libraries.supportCardView
compile libraries.materialicons
compile libraries.stickyheaders
diff --git a/SuperRecyclerView-sample/src/main/AndroidManifest.xml b/SuperRecyclerView-sample/src/main/AndroidManifest.xml
index 16ae9b1..07ed077 100644
--- a/SuperRecyclerView-sample/src/main/AndroidManifest.xml
+++ b/SuperRecyclerView-sample/src/main/AndroidManifest.xml
@@ -21,6 +21,7 @@
+
diff --git a/SuperRecyclerView-sample/src/main/java/com/malinskiy/superrecyclerview/sample/BehaviorActivity.java b/SuperRecyclerView-sample/src/main/java/com/malinskiy/superrecyclerview/sample/BehaviorActivity.java
new file mode 100644
index 0000000..afde469
--- /dev/null
+++ b/SuperRecyclerView-sample/src/main/java/com/malinskiy/superrecyclerview/sample/BehaviorActivity.java
@@ -0,0 +1,28 @@
+package com.malinskiy.superrecyclerview.sample;
+
+import android.os.Bundle;
+import android.support.v7.widget.LinearLayoutManager;
+
+public class BehaviorActivity extends BaseActivity {
+
+ @Override protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+
+
+ }
+
+ @Override
+ protected int getLayoutId() {
+ return R.layout.activity_behavior;
+ }
+
+ @Override
+ protected boolean isSwipeToDismissEnabled() {
+ return true;
+ }
+
+ @Override
+ protected LinearLayoutManager getLayoutManager() {
+ return new LinearLayoutManager(this);
+ }
+}
\ No newline at end of file
diff --git a/SuperRecyclerView-sample/src/main/java/com/malinskiy/superrecyclerview/sample/MainActivity.java b/SuperRecyclerView-sample/src/main/java/com/malinskiy/superrecyclerview/sample/MainActivity.java
index 23b6f36..61efd78 100644
--- a/SuperRecyclerView-sample/src/main/java/com/malinskiy/superrecyclerview/sample/MainActivity.java
+++ b/SuperRecyclerView-sample/src/main/java/com/malinskiy/superrecyclerview/sample/MainActivity.java
@@ -51,5 +51,13 @@ public void onClick(View v) {
startActivity(intent);
}
});
+
+ findViewById(R.id.button_behavior).setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(MainActivity.this, BehaviorActivity.class);
+ startActivity(intent);
+ }
+ });
}
}
diff --git a/SuperRecyclerView-sample/src/main/res/layout/activity_behavior.xml b/SuperRecyclerView-sample/src/main/res/layout/activity_behavior.xml
new file mode 100644
index 0000000..2744b5c
--- /dev/null
+++ b/SuperRecyclerView-sample/src/main/res/layout/activity_behavior.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SuperRecyclerView-sample/src/main/res/layout/activity_chooser.xml b/SuperRecyclerView-sample/src/main/res/layout/activity_chooser.xml
index 37cab57..d95020c 100644
--- a/SuperRecyclerView-sample/src/main/res/layout/activity_chooser.xml
+++ b/SuperRecyclerView-sample/src/main/res/layout/activity_chooser.xml
@@ -44,4 +44,13 @@
android:layout_below="@+id/button_swipe_sample"
android:text="Header adapter example"/>
+
+
\ No newline at end of file
diff --git a/build.gradle b/build.gradle
index 3af8512..758f227 100644
--- a/build.gradle
+++ b/build.gradle
@@ -6,7 +6,7 @@ buildscript {
jcenter()
}
dependencies {
- classpath 'com.android.tools.build:gradle:2.0.0-beta6'
+ classpath 'com.android.tools.build:gradle:2.1.0-beta3'
}
}
diff --git a/buildsystem/dependencies.gradle b/buildsystem/dependencies.gradle
index a945275..effaac2 100644
--- a/buildsystem/dependencies.gradle
+++ b/buildsystem/dependencies.gradle
@@ -5,10 +5,10 @@ ext.versions = [
minSdk : 7,
targetSdk : 23,
compileSdk : 23,
- buildTools : '23.0.2',
+ buildTools : '23.0.3',
// Library versions
- supportLibs : '23.2.0',
+ supportLibs : '23.3.0',
nineOldAndroids: '2.4.0',
materialicons : '1.0.1',
stickyheaders : '0.5.0'
@@ -17,6 +17,7 @@ ext.versions = [
ext.libraries = [
supportRecyclerView: "com.android.support:recyclerview-v7:$versions.supportLibs",
supportAppCompat : "com.android.support:appcompat-v7:$versions.supportLibs",
+ supportDesign : "com.android.support:design:$versions.supportLibs",
supportCardView : "com.android.support:cardview-v7:$versions.supportLibs",
supportAnnotations : "com.android.support:support-annotations:$versions.supportLibs",