Skip to content

Commit

Permalink
Bump to 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensousa committed Aug 7, 2024
1 parent fdf11e5 commit f5bf2fd
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
14 changes: 14 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

## Version 1.3.0

### 1.3.0

2024-08-08

#### Important changes since 1.2.0

- Added `DpadComposeFocusViewHolder` that allows sending the focus state down to Composables
- Added `Modifier.dpadClickable` for playing the click sound after clicking on a Composable.
- Allow skipping layout requests during scroll with `setLayoutWhileScrollingEnabled(false)`
- New `addOnViewFocusedListener` to observe focus changes independently from selection changes.
- Added `DpadDragHelper` for drag and drop support. Documentation available [here](recipes/dragdrop.md).
- Now `recyclerView.setFocusableDirection(FocusableDirection.CIRCULAR)` can also be used in linear layouts that don't fill the entire space.
- Added `DpadStateRegistry` that assists in saving and restoring the scroll state or view state of ViewHolders

### 1.3.0-rc03

2024-07-23
Expand Down
10 changes: 10 additions & 0 deletions docs/selection.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ view.setOnFocusChangeListener { _, hasFocus ->
}
```

You can also observe focus changes inside `DpadRecyclerView` with the following:

```kotlin linenums="1"
recyclerView.addOnViewFocusedListener(object : OnViewFocusedListener {
override fun onViewFocused(parent: RecyclerView.ViewHolder, child: View) {
// Child has focus
}
})
```

## Selection changes

You can observe selection changes using the following:
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.3.0-rc03
LIBRARY_VERSION=1.3.0
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.3.0-rc03'
version: '1.3.0'
social:
- icon: 'fontawesome/brands/github'
link: 'https://github.com/rubensousa/DpadRecyclerView'
Expand Down

0 comments on commit f5bf2fd

Please sign in to comment.