Skip to content

Commit a0ecead

Browse files
committed
New feature:
1.Ptrrv is support addHeaderView now. 2.fix some bug 3.edit the demo, show how to add a headerview
1 parent 4188115 commit a0ecead

File tree

23 files changed

+457
-314
lines changed

23 files changed

+457
-314
lines changed

Library/Library.iml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,6 @@
9191
<orderEntry type="library" exported="" name="support-v4-22.2.1" level="project" />
9292
<orderEntry type="library" exported="" name="recyclerview-v7-22.2.1" level="project" />
9393
<orderEntry type="library" exported="" name="support-annotations-22.2.1" level="project" />
94+
<orderEntry type="library" exported="" name="library-2.4.0" level="project" />
9495
</component>
9596
</module>

Library/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apply plugin: 'com.android.library'
33
dependencies {
44
compile 'com.android.support:appcompat-v7:22.1.1'
55
compile 'com.android.support:recyclerview-v7:22.2.1'
6+
compile 'com.nineoldandroids:library:2.4.0'
67
}
78

89
android {
2.57 KB
Binary file not shown.
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<android.support.v7.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
3-
android:id="@+id/recycler_view"
2+
<RelativeLayout
3+
xmlns:android="http://schemas.android.com/apk/res/android"
44
android:layout_width="match_parent"
55
android:layout_height="match_parent">
6-
</android.support.v7.widget.RecyclerView>
7-
<!-- From: file:/F:/Project/Android-PullToRefreshRecyclerView/Library/res/layout/ptrrv_root_view.xml -->
6+
<android.support.v7.widget.RecyclerView
7+
android:id="@+id/recycler_view"
8+
android:layout_width="match_parent"
9+
android:layout_height="match_parent">
10+
</android.support.v7.widget.RecyclerView>
11+
</RelativeLayout><!-- From: file:/F:/Project/Android-PullToRefreshRecyclerView/Library/res/layout/ptrrv_root_view.xml -->
2.67 KB
Binary file not shown.
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<android.support.v7.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
3-
android:id="@+id/recycler_view"
2+
<RelativeLayout
3+
xmlns:android="http://schemas.android.com/apk/res/android"
44
android:layout_width="match_parent"
55
android:layout_height="match_parent">
6-
</android.support.v7.widget.RecyclerView>
7-
<!-- From: file:/F:/Project/Android-PullToRefreshRecyclerView/Library/res/layout/ptrrv_root_view.xml -->
6+
<android.support.v7.widget.RecyclerView
7+
android:id="@+id/recycler_view"
8+
android:layout_width="match_parent"
9+
android:layout_height="match_parent">
10+
</android.support.v7.widget.RecyclerView>
11+
</RelativeLayout><!-- From: file:/F:/Project/Android-PullToRefreshRecyclerView/Library/res/layout/ptrrv_root_view.xml -->

Library/build/intermediates/incremental/mergeResourcesandroidTest/debug/merger.xml

Lines changed: 84 additions & 84 deletions
Large diffs are not rendered by default.

Library/build/intermediates/incremental/mergeResourcesdebug/merger.xml

Lines changed: 84 additions & 84 deletions
Large diffs are not rendered by default.

Library/build/intermediates/incremental/mergeResourcesrelease/merger.xml

Lines changed: 82 additions & 82 deletions
Large diffs are not rendered by default.
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<android.support.v7.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
3-
android:id="@+id/recycler_view"
2+
<RelativeLayout
3+
xmlns:android="http://schemas.android.com/apk/res/android"
44
android:layout_width="match_parent"
55
android:layout_height="match_parent">
6-
</android.support.v7.widget.RecyclerView>
7-
<!-- From: file:/F:/Project/Android-PullToRefreshRecyclerView/Library/res/layout/ptrrv_root_view.xml -->
6+
<android.support.v7.widget.RecyclerView
7+
android:id="@+id/recycler_view"
8+
android:layout_width="match_parent"
9+
android:layout_height="match_parent">
10+
</android.support.v7.widget.RecyclerView>
11+
</RelativeLayout><!-- From: file:/F:/Project/Android-PullToRefreshRecyclerView/Library/res/layout/ptrrv_root_view.xml -->

0 commit comments

Comments
 (0)