Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Commit

Permalink
Update support to 23.3.0
Browse files Browse the repository at this point in the history
Behavior example
  • Loading branch information
Malinskiy committed Apr 22, 2016
1 parent d9372e6 commit b451f55
Show file tree
Hide file tree
Showing 8 changed files with 87 additions and 3 deletions.
1 change: 1 addition & 0 deletions SuperRecyclerView-sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ dependencies {
compile project(':SuperRecyclerView')

compile libraries.supportAppCompat
compile libraries.supportDesign
compile libraries.supportCardView
compile libraries.materialicons
compile libraries.stickyheaders
Expand Down
1 change: 1 addition & 0 deletions SuperRecyclerView-sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<activity android:name=".StaggeredGridActivity"/>
<activity android:name=".SwipeActivity"/>
<activity android:name=".HeaderAdapterActivity"/>
<activity android:name=".BehaviorActivity"/>
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
}
}
36 changes: 36 additions & 0 deletions SuperRecyclerView-sample/src/main/res/layout/activity_behavior.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">

<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">

<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:title="Behavior example"
app:layout_scrollFlags="scroll|enterAlways"/>

</android.support.design.widget.AppBarLayout>

<com.malinskiy.superrecyclerview.SuperRecyclerView
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_empty="@layout/emptyview"
app:layout_moreProgress="@layout/view_more_progress"
app:mainLayoutId="@layout/layout_recyclerview_verticalscroll"
app:recyclerClipToPadding="false"
app:recyclerPadding="16dp"
app:scrollbarStyle="insideInset"
app:layout_behavior="@string/appbar_scrolling_view_behavior"/>

</android.support.design.widget.CoordinatorLayout>
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,13 @@
android:layout_below="@+id/button_swipe_sample"
android:text="Header adapter example"/>

<Button
android:id="@+id/button_behavior"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="48dp"
android:layout_centerHorizontal="true"
android:layout_below="@+id/button_header_sample"
android:text="Behavior example"/>

</RelativeLayout>
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}

Expand Down
5 changes: 3 additions & 2 deletions buildsystem/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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",

Expand Down

0 comments on commit b451f55

Please sign in to comment.