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

多页面侧滑时有问题 #21

Open
chocolatecw opened this issue Jul 16, 2016 · 5 comments
Open

多页面侧滑时有问题 #21

chocolatecw opened this issue Jul 16, 2016 · 5 comments

Comments

@chocolatecw
Copy link

ViewPager+TabLayout实现多页面侧滑,侧滑时可能导致下拉头或上拉头暴露出来而不能自动回弹,看源码应该是没有对左右滑动的处理

@yongming9011
Copy link

请问你的这个问题解决了没,我也遇到了

@chocolatecw
Copy link
Author

@MoneyNotFoundException 没有从根本上解决吧,我是这样做的:把框架里面的hide方法改为public,然后监听滑动,在适当的位置主动调用hide方法

@yongming9011
Copy link

能麻烦说的详细点么,小白一枚,不知道怎么监听滑动啊,我给控件设置onTouchEvent监听压根就不执行啊,我想知道你是怎么做的呢

@chocolatecw
Copy link
Author

@MoneyNotFoundException 我监听了这两个,一个是ViewPager, viewPager.addOnPageChangeListener(this);另一个是DrawerLayout,drawerLayout.addDrawerListener(this);

@yongming9011
Copy link

感谢大神,我先试试啊

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