This repository has been archived by the owner on Nov 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
88 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## Core [Unreleased] | ||
|
||
### Added | ||
|
||
- Added `doOnEveryEvent` as shorthand for adding a `LifeCycleObserver` | ||
|
||
## ViewPager2 [Unreleased] | ||
|
||
### Added | ||
|
||
- `FragmentListAdapter` for easy and efficient management of `Fragment` instances in a `FragmentStateAdapter` | ||
|
||
## Core [1.3.1] | ||
|
||
### Fixed | ||
|
||
- Fixed callback of service being bound in `HardServiceConnection` firing before the `Service` has been assigned to it's `var` | ||
|
||
## Navigation [1.2.1] | ||
|
||
### Added | ||
|
||
- Allowed `MultiStackNavigator` to have different back stack types as defined by | ||
``` kotlin | ||
sealed class BackStackType { | ||
object UniqueEntries : BackStackType() | ||
object Unlimited : BackStackType() | ||
data class Restricted(val count: Int) : BackStackType() | ||
} | ||
``` | ||
|
||
## View [1.2.0] | ||
|
||
### Changed | ||
|
||
- Maintenance update, bumped core androidx versions | ||
|
||
## RecyclerView [1.2.0] | ||
|
||
### Added | ||
|
||
- `RecyclerViewMultiScroller` to synchronize scrolling of multiple `RecyclerView` instances | ||
|
||
## Material [1.0.4] | ||
|
||
### Changed | ||
|
||
- Maintenance update, bumped core androidx versions | ||
|
||
## Communications [1.0.0] | ||
|
||
### Changed | ||
|
||
- Initial release | ||
|
||
## SavedState [1.0.1] | ||
|
||
### Changed | ||
|
||
- Maintenance update, bumped core androidx versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# ViewPager2 | ||
|
||
### FragmentListAdapter | ||
|
||
Allows for efficient display `Fragments` in a `ViewPager2` by using `DiffUtil` to diff changes in | ||
the adapter. Extensions are available for both `Fragment` and `FragmentActivity` types. | ||
|
||
There are 1 main building blocks: | ||
|
||
1. `FragmentTab` a type that represents a `Fragment` in the `ViewPager2`, it's purpose is to map to | ||
a `Fragment` and uniquely identify a it by it's contents, you want to use a `data` class to | ||
implement this, or at the very least a class with stable `equals` and `hashcode` implementations. | ||
|
||
With that, updating the `ViewPager2` is as simple as `FragmentListAdapter.submitList(newTabs)`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters