From f5bf2fdf815a7ded9af650ac1950e319041ce8e8 Mon Sep 17 00:00:00 2001 From: Ruben Sousa Date: Thu, 8 Aug 2024 00:51:50 +0200 Subject: [PATCH] Bump to 1.3.0 --- docs/changelog.md | 14 ++++++++++++++ docs/selection.md | 10 ++++++++++ gradle.properties | 2 +- mkdocs.yml | 2 +- 4 files changed, 26 insertions(+), 2 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index fa657c50..9e2cb854 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -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 diff --git a/docs/selection.md b/docs/selection.md index b6264360..aeb36d13 100644 --- a/docs/selection.md +++ b/docs/selection.md @@ -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: diff --git a/gradle.properties b/gradle.properties index 734975c7..032b9603 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 \ No newline at end of file +LIBRARY_VERSION=1.3.0 \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index e0547e64..5141a047 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -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'