<commit_before># endless-recycler-view

## Overview

`EndlessRecyclerView` lets you to load new pages when a user scrolls down to the bottom of a list.
It extends `RecyclerView` and it is fully configurable to meet different development needs.

The library compatible with Android 7+.

## Usage

### Dependencies

To use the library in your project write this code to your build.gradle:

```groovy
buildscript {
    repositories {
        jcenter()
    }
}

dependencies {
    compile 'com.github.yasevich:endless-recycler-view:1.0'
}
```

Or include it to your lib folder.

[![Download](https://api.bintray.com/packages/slava/maven/endless-recycler-view/images/download.svg)]
(https://bintray.com/slava/maven/endless-recycler-view/_latestVersion)

### Layout

You can include `EndlessRecyclerView` to your layout as following:

```xml
<com.github.yasevich.endlessrecyclerview.EndlessRecyclerView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/list"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"/>
```

### Initialization

Set up `EndlessRecyclerView` parameters as required:

```java
EndlessRecyclerView list = ...; // initialization
list.setLayoutManager(new LinearLayoutManager(this));
list.setProgressView(R.layout.item_progress);
list.setAdapter(adapter);
list.setPager(this);
```

### Also

When page is loaded you may want to stop showing progress view:

```java
list.setRefreshing(false);
```

See sample and documentation for more details.<commit_msg>add StaggeredGridLayoutManager support<commit_after># endless-recycler-view

## Overview

`EndlessRecyclerView` lets you to load new pages when a user scrolls down to the bottom of a list.
It extends `RecyclerView` and it is fully configurable to meet different development needs.

The library compatible with Android 7+.

## Usage

### Dependencies

To use the library in your project write this code to your build.gradle:

```groovy
buildscript {
    repositories {
        jcenter()
    }
}

dependencies {
    compile 'com.github.yasevich:endless-recycler-view:1.0'
}
```

Or include it to your lib folder.

[![Download](https://api.bintray.com/packages/slava/maven/endless-recycler-view/images/download.svg)]
(https://bintray.com/slava/maven/endless-recycler-view/_latestVersion)

### Layout

You can include `EndlessRecyclerView` to your layout as following:

```xml
<com.github.yasevich.endlessrecyclerview.EndlessRecyclerView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/list"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"/>
```

### Initialization

Set up `EndlessRecyclerView` parameters as required:

```java
EndlessRecyclerView list = ...; // initialization
list.setLayoutManager(new LinearLayoutManager(this));
list.setProgressView(R.layout.item_progress);
list.setAdapter(adapter);
list.setPager(this);
```

Or

```java
EndlessRecyclerView list = ...; // initialization
list.setLayoutManager(new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL));
list.setProgressView(R.layout.item_progress);
list.setAdapter(adapter);
list.setPager(this);
```


### Also

When page is loaded you may want to stop showing progress view:

```java
list.setRefreshing(false);
```

See sample and documentation for more details.
{'fraction_non_alphanumeric': 0.11752697579469233, 'fraction_numerical': 0.002041411490230388, 'mean_word_length': 5.114081996434938, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2381526', 'n_tokens_mistral': 1115, 'n_tokens_neox': 1050, 'n_words': 264}