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

TabVpFlowLayout+ViewPager2 实现垂直tab切换Viewpager时无法加入指示器吗? #26

Open
WindSpace opened this issue Oct 28, 2021 · 2 comments
Labels
help wanted Extra attention is needed 需求

Comments

@WindSpace
Copy link

提供的demo是TabFlowLayout+recycleView ,现在需要垂直的tab去切换viewpager .就使用了TabVpFlowLayout+ViewPager2. 目前tab切换viewpager是可以的,但是添加的指示器无法显示.设置TabVpFlowLayout为horizontal时 矩形指示器会显示出来,TabVpFlowLayout设置为vertical ,矩形指示器就不显示了. 尝试过TabBean去实现 也失败了.

@WindSpace
Copy link
Author

横向时 切换item 指示器会跟随移动 改为垂直时 切换tab 指示器固定在第一个tab 不会随着切换tab移动
改动代码只有tabflow.setTabOrientation(FlowConstants.VERTICAL);

@LillteZheng
Copy link
Owner

垂直的,你用拿到 position 去切 viewpager2;库说了,viewpage2 只做了横向,竖向没有实现,肯定没效果;后面看看有没有时间了

@LillteZheng LillteZheng added help wanted Extra attention is needed 需求 labels Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed 需求
Projects
None yet
Development

No branches or pull requests

2 participants