<commit_before># rvlazyscroll


[![](https://jitpack.io/v/spurdow/rvlazyscroll.svg)](https://jitpack.io/#spurdow/rvlazyscroll)


Another Endless RecyclerView


# Gradle Dependency

### Repository

Add this in your root `build.gradle` file (**not** your module `build.gradle` file):

```gradle
allprojects {
	repositories {
		...
		maven { url "https://jitpack.io" }
	}
}
```

Add this in your app `build.gradle` file

```gradle
dependencies {
	...
    compile 'com.github.spurdow:rvlazyscroll:1.0.0'
    }
}
```


```java
        RVLazyScroll<Person> endless = new RVLazyScroll<Person>() {
            @Override
            public List<Person> onLoadMore(int offset) {
                // your query here and move it to list Person
                return new ArrayList<Person>(){new Person()};
            }

            @Override
            public void onDoneLoad(List<Person> newListOfdata) {
                // this is where your add it to your adapter
                adapter.addAll(newListOfdata);
            }
        };

        RecyclerView recyclerView ;
        recyclerView.addOnScrollListener(endless);

```<commit_msg>updated README usage<commit_after># rvlazyscroll


[![](https://jitpack.io/v/spurdow/rvlazyscroll.svg)](https://jitpack.io/#spurdow/rvlazyscroll)


Another Endless RecyclerView


# Gradle Dependency

### Repository

Add this in your root `build.gradle` file (**not** your module `build.gradle` file):

```gradle
allprojects {
	repositories {
		...
		maven { url "https://jitpack.io" }
	}
}
```

Add this in your app `build.gradle` file

```gradle
dependencies {
	...
    compile 'com.github.spurdow:rvlazyscroll:1.0.0'
    }
}
```
### Usage

```java
    RVLazyScroll<Person> endless = new RVLazyScroll<Person>() {
        @Override
        public List<Person> onLoadMore(int offset) {
            // your query here and move it to list Person
            return new ArrayList<Person>(){new Person()};
        }

        @Override
        public void onDoneLoad(List<Person> newListOfdata) {
            // this is where your add it to your adapter
            adapter.addAll(newListOfdata);
        }
    };

    RecyclerView recyclerView ;
    recyclerView.addOnScrollListener(endless);

```
{'fraction_non_alphanumeric': 0.1281474820143885, 'fraction_numerical': 0.002697841726618705, 'mean_word_length': 2.577170418006431, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2574699', 'n_tokens_mistral': 749, 'n_tokens_neox': 704, 'n_words': 161}