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

和ViewPager2使用不生效 #74

Open
jianjunxiao opened this issue Jun 27, 2020 · 1 comment
Open

和ViewPager2使用不生效 #74

jianjunxiao opened this issue Jun 27, 2020 · 1 comment

Comments

@jianjunxiao
Copy link

问题描述

请描述您遇到的问题

  • 预期行为:在含有ViewPager2的Activity中使用时,在第一个page左滑能正常退出

  • 实际行为:在含有ViewPager2的Activity中使用时,在第一个page左滑时在部分机型不生效,我这里测试到一个华为mate9手机就不行,在另一个红米note8手机上可以在第一页左滑退出,但是互动一瞬间不是很灵敏。

出问题的代码

   SmartSwipe.wrap(this)
            .removeAllConsumers()
            .addConsumer(ActivitySlidingBackConsumer(this))
            .setSwipeDistanceCalculator(ScaledCalculator(1f))
            .enableLeft()

当前使用的SmartSwipe版本号:

implementation 'com.billy.android:smart-swipe:1.1.2'
implementation 'com.billy.android:smart-swipe-x:1.1.0'

如何复现?(如果能在demo中复现将有利于作者尽快修复问题)

截图或gif

@pwbq
Copy link

pwbq commented May 5, 2023

你好,这问题,你解决了吗?

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