Skip to content

Commit

Permalink
Incremented version name to 0.0.2 and updated README.md file.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubkomorowski committed Feb 13, 2017
1 parent 8a6f130 commit 2f2625b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# InifiniteRecyclerView
This is a tiny library for implementing endless loading list easily in Android applications, similar to those seen in Facebook or Twitter apps. It consists of LoadingRecyclerView and AbstractLoadingAdapter that has to be extended by user for usage in their project.
This is a tiny library for implementing endless loading list easily in Android applications, similar to those seen in Facebook or Twitter apps. It consists of InfiniteRecyclerView and AbstractInfiniteAdapter that has to be extended by user for usage in their project.

![Demo](http://i.giphy.com/l3q2WWM6bhe7kwbmw.gif)

# Usage
To use this library, you will need to implement AbstractEndlessAdapter, ItemsLoader interface, and use them with EndlessRecyclerView.
To include this library in your project, simply add the following line to your module gradle file:
```
compile 'com.tenclouds:infinite-recyclerview:0.0.2'
```
You will need to implement AbstractInfiniteAdapter, ItemsLoader interface, and use them with InfiniteRecyclerView.

# ItemsLoader implementation

Expand Down Expand Up @@ -49,12 +53,12 @@ public class SearchCardsLoader implements ItemsLoader<Card> {
}
```

# AbstractEndlessAdapter
# AbstractInfiniteAdapter

The implementation of AbstractEndlessAdapter might look something like this:
The implementation of InfiniteRecyclerView might look something like this:

```java
public class MtgCardsEndlessAdapter extends AbstractEndlessAdapter<Card> {
public class MtgCardsEndlessAdapter extends AbstractInfiniteAdapter<Card> {
private ItemSelectedListener itemSelectedListener;

public MtgCardsEndlessAdapter(Context context, AbstractItemsLoader<Card> itemsLoader, ItemSelectedListener itemSelectedListener) {
Expand Down Expand Up @@ -109,5 +113,5 @@ public class MtgCardsEndlessAdapter extends AbstractEndlessAdapter<Card> {

You can use multiple view types if you want to, just like in "normal" adapter.

# EndlessRecyclerView
This class simply needs to be used instead of normal recycler view, to send callbacks to the adapter when the view is scrolled to the bottom. It supports all of the parameters availible for RecyclerView.
# InfiniteRecyclerView
This class simply needs to be used instead of normal recycler view, to send callbacks to the adapter when the view is scrolled to the bottom. It supports all of the parameters available for RecyclerView.
4 changes: 2 additions & 2 deletions infiniterecyclerview/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'me.tatarka.retrolambda'
ext {
PUBLISH_GROUP_ID = 'com.tenclouds'
PUBLISH_ARTIFACT_ID = 'infinite-recyclerview'
PUBLISH_VERSION = '0.0.1'
PUBLISH_VERSION = '0.0.2'
}

android {
Expand All @@ -19,7 +19,7 @@ android {
minSdkVersion 14
targetSdkVersion 25
versionCode 1
versionName "0.0.1"
versionName "0.0.2"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
Expand Down

0 comments on commit 2f2625b

Please sign in to comment.