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

侧滑时,滑到一半,取消侧滑,再点击返回键,右边会出现空白 #1130

Closed
Hell-And opened this issue May 29, 2019 · 6 comments

Comments

@Hell-And
Copy link

侧滑时,滑到一半,取消侧滑,再点击返回键,右边会出现空白
Screenshot_2019-05-29-16-55-20-819_com whxh mobil

@cocowobo
Copy link

偶发,还是必发。偶发,就有可能你的手机debug造成的卡顿,瞬间,是会导致view绘制中断的

@Hell-And
Copy link
Author

偶发,还是必发。偶发,就有可能你的手机调试造成的卡顿,瞬间,是会导致视图绘制中断的

必发 ,不过我已经找到问题了,开始我Support和SwipeBack都是 implements实现的,然后将Support改成继承就没这个问题了

@cocowobo
Copy link

你这骚操作呀,

@weiyiAndroid
Copy link

我也遇到了这种情况,fragmentationx:1.0.1 版本,你具体是怎么修复的啊?

@Hell-And
Copy link
Author

我也遇到了这种情况,fragmentationx:1.0.1版本,你具体是怎么修复的啊?

我是因为都是使用的implement的Support和SwipeBack造成的,改成extend就好了

@CAnonymous8
Copy link

CAnonymous8 commented Jul 26, 2021

原因在于 computeScroll 做了x轴偏移
image

解决方法: 在基类Fragment onViewCreated 添加监听滑动state == 0 , onDestroyView 取消滑动监听 如下:
image

image

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

4 participants