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"/> +