-
Notifications
You must be signed in to change notification settings - Fork 54
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
ViewPager2 Fragment中showContentView 高度异常 #6
Comments
viewpager2 的 fragment 根布局的 layoutParams为null |
测试了下 viewpager2 的适配器继承 FragmentStateAdapter 才触发,继承 RecyclerView.Adapter 没问题。暂时没排查出原因,如果有需要可以先改成后者。 |
确实 那我先用回viewpager也行 |
@DylanCaiCoding 大佬你看我这样修改行不行
|
@DylanCaiCoding 好像这样ToolBar部分就被顶没了 |
|
因为Viewpager2 里面fragment的bind.root.parent为空......... |
解决了吗。。。 |
还没解决吗 |
The text was updated successfully, but these errors were encountered: