Skip to content

Commit

Permalink
Merge pull request #151 from rubensousa/docs
Browse files Browse the repository at this point in the history
Bump to 1.1.0-alpha01
  • Loading branch information
rubensousa authored Jun 8, 2023
2 parents 895c26e + f5175b4 commit 9375755
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Check the official website for more information and recipes: https://rubensousa.
### Layout

- Supports grids with different span sizes
- Supports infinite/endless scrolling
- Supports reverse layout
- XML attributes for easier configuration

Expand Down
12 changes: 12 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## Version 1.1.0

### 1.1.0-alpha01

2023-06-08

#### New Features

- Added support for endless scrolling with looping adapter contents: ([#20](https://github.com/rubensousa/DpadRecyclerView/issues/20)).
Check [this](recipes/layout.md#looping-adapter-contents) for more information.


## Version 1.0.0

### 1.0.0
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Motivation for this library is available in my [blog](https://rubensousa.com/202
### Layout

- Grids with different span sizes
- Infinite loop
- Reverse layout
- XML attributes for easier configuration

Expand Down
16 changes: 16 additions & 0 deletions docs/recipes/layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,22 @@ recyclerView.setSpanSizeLookup(object : DpadSpanSizeLookup() {
})
```

## Looping adapter contents

You can enable infinite scrolling by using `setLoopDirection` to loop the adapter contents:

```kotlin linenums="1"
// This will loop when scrolling towards both the start and end edges
recyclerView.setLoopDirection(DpadLoopDirection.MIN_MAX)

// This will loop only when scrolling towards the end
recyclerView.setLoopDirection(DpadLoopDirection.MAX)
```

!!! note
Looping is only supported when there's enough items to fill the viewport


## Extra layout space

`DpadRecyclerView` won't layout any extra space by default, however,
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ kotlin.code.style=official
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.enableR8.fullMode=true
LIBRARY_VERSION=1.0.0
LIBRARY_VERSION=1.1.0-alpha01
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ theme:

extra:
dpadrecyclerview:
version: '1.0.0'
version: '1.1.0-alpha01'
social:
- icon: 'fontawesome/brands/github'
link: 'https://github.com/rubensousa/DpadRecyclerView'
Expand Down

0 comments on commit 9375755

Please sign in to comment.