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

androidx 1.8.0 activity内viewpager2内两个fragment, activity发送,fragment收不到消息 #151

Open
morefreeliang opened this issue Dec 29, 2021 · 3 comments

Comments

@morefreeliang
Copy link

androidx 1.8.0, activity内viewpager2,viewpager2内是两个fragment, activity发送,fragment收不到消息

@TrueloveSomeGIRl
Copy link

androidx 1.8.0, activity内viewpager2,viewpager2内是两个fragment, activity发送,fragment收不到消息

兄弟有什么办法解决吗 我现在也是一样的功能 点击搜索 关键词需要穿个viewpager里面的三个fragment 也是收不到值

@morefreeliang
Copy link
Author

androidx 1.8.0, activity内viewpager2,viewpager2内是两个fragment, activity发送,fragment收不到消息

兄弟有什么办法解决吗 我现在也是一样的功能 点击搜索 关键词需要穿个viewpager里面的三个fragment 也是收不到值

我也是在搜索的场景,后来我用的共享ViewModel,关键词放在ViewModel中,fragment和Activity共享ViewModel

@wn0424
Copy link

wn0424 commented Feb 2, 2024

的确存在此问题,不知道为啥

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

3 participants