-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
不支持setCurrentItem(index, false)? #290
Comments
你绑定了吗?
zhongzixing ***@***.***> 于2022年8月26日周五 16:45写道:
… setCurrentItem(index, false)光标不移动,另外初始化Viewpager其他index。选中tab也无法准确选中
—
Reply to this email directly, view it on GitHub
<#290>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFJNWTMJH32PRI2FUR7WGZLV3B73VANCNFSM57V42J4Q>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
绑定了依然会出现这问题,如果是setCurrentItem(index, true)光标则会正常移动,很头疼 |
使用的viewpager2,自己手动绑定的,依然会出现这问题,如果是setCurrentItem(index, true)光标则会正常移动,很头疼 |
解决了,如果不需要滑动动画的话,则需要手动在onPageSelected之前进行onPageScrolled(position,0f,0)就可以了 |
viewPager.setCurrentItem(index,false); |
一样遇到这问题啊,怎么解决,绑定viewpager点击tab切换fragment,setCurrentItem(index, false),就没有动画, |
发现demo 的 LoadCustomLayoutExampleActivity 类也是这样: .setCurrentItem(index, false); 点击底部菜单就没有动画了 @hackw |
setCurrentItem(index, false)光标不移动,另外初始化Viewpager其他index。选中tab也无法准确选中
The text was updated successfully, but these errors were encountered: