Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.3.0 #245

Merged
merged 1 commit into from
Aug 7, 2024
Merged

1.3.0 #245

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading