Skip to content

issue about viewpager component #1028

@zhengzhong1

Description

@zhengzhong1

Version

0.47.0

Issues and Steps to Reproduce

I need to dynamically adjust the height of the viewpager to achieve the effect shown in the following figure:
image

In Viewpager2, I can dynamically calculate and refresh the height of viewpager2 by listening to ViewPager2.OnPageChangeCallback, calculating the difference between the current page and the target page, and sliding the differencer;

In litho, I did not find the ViewPager2.OnPageChangeCallback interface, only the lower-level RecyclerView.OnScrollListener interface, so I am wondering if there is an implementation similar to the native ScrollEventAdapter in litho;

Expected Behavior

Link to Code

Please show some code we can use to reproduce this issue. Consider using PlaygroundComponentSpec to provide a small example of the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions