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

[Feature request] 在custom_scrollview下怎么跟Tabbar联动? #87

Closed
sjkyyt01 opened this issue Aug 14, 2024 · 3 comments
Closed

[Feature request] 在custom_scrollview下怎么跟Tabbar联动? #87

sjkyyt01 opened this issue Aug 14, 2024 · 3 comments
Assignees

Comments

@sjkyyt01
Copy link

Platforms

Android

Description

使用模块定位(Tabbar)在ListView下可以,在custom_scrollview下怎么做到?示例中好像不支持,ObserverUtils中只有针对ListView这种非custom_scrollview下的

Why

No response

@LinXunFeng
Copy link
Member

LinXunFeng commented Aug 15, 2024

TabBar 关联 Sliver 吗?onObserveViewport 可以知道当前哪个 sliver 是第一个。

@sjkyyt01
Copy link
Author

深入了解了一下,custom_scrollview不能在左边定义一个纵向的Tabbar,改成了ListViewObserver,但现在又存在一个问题,就是NestedScrollView下ListViewObserver中的ListView部分上移后,SliverAppBar扩展的flexibleSpace不会收缩,把ListView中的scrollController移除后可以达到这个效果,但是跟Tabbar的联动效果就不存在了,现在我想达到在SliverAppBar未收缩前在ListView位置上滑时优先收缩SliverAppBar,然后再移动ListView自己的内容,反之,SliverAppBar收缩后,ListView如果到达顶部则扩展SliverAppBar,其实就就是达到美团外卖或者饿了么外卖店铺首页的效果

@LinXunFeng
Copy link
Member

嗯嗯,不过这不是该库需要去做的

This issue was closed.
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

No branches or pull requests

2 participants