Skip to content

Conversation

@rlatapy-luna
Copy link
Contributor

Add a public setter on weak ref liftOnScrollTargetView so we can have a better control on the scrolling view finding. Today we can only set an id which might be part a reused layout leading to unexpected behavior, especially when using a view pager with many fragment using the same layout (simple recycler). Moreover, when using view binding, it is easier and cleaner to provide the view directly.
The current solution is to use reflection to directly set the liftOnScrollTargetView and bypass liftOnScrollTargetViewId.

@rlatapy-luna rlatapy-luna changed the title [AppBarLayout] [AppBarLayout] Add liftOnScrollTargetView public setter Feb 2, 2022
@pekingme pekingme requested a review from dsn5ft February 3, 2022 00:22
@dsn5ft dsn5ft self-assigned this Apr 19, 2022
@dsn5ft dsn5ft closed this in d6c4354 Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants