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

自定义侧滑移动的视图android:tag="swipe"复用问题 #263

Closed
dogscar opened this issue Sep 15, 2022 · 3 comments
Closed

自定义侧滑移动的视图android:tag="swipe"复用问题 #263

dogscar opened this issue Sep 15, 2022 · 3 comments
Labels
Bug Something isn't working

Comments

@dogscar
Copy link

dogscar commented Sep 15, 2022

问题描述

自定义侧滑移动的视图android:tag="swipe"后,当侧滑删除目标view后,滚动列表,复用的那一个item会直接显示背景项,滑动一下又能恢复。
代码是在官方的示例基础上修改的。
@liangjingkanji

期望行为

如何复现

任何业务相关问题没有fork仓库复现问题一律无法解决, 凭空猜测只会让问题晦涩难懂, 大量耽误项目维护时间

截图

2

异常堆栈信息或者手机截图/视频(拖拽到输入框即可上传)

版本

  • BRV: 1.3.81
  • Android:
  • Gradle:
  • Android Studio:
@dogscar dogscar added the 寻求帮助 Extra attention is needed label Sep 15, 2022
@liangjingkanji liangjingkanji changed the title Swipe异常 自定义侧滑移动的视图android:tag="swipe"复用问题 Sep 15, 2022
@liangjingkanji liangjingkanji added Bug Something isn't working and removed 寻求帮助 Extra attention is needed labels Sep 15, 2022
@liangjingkanji
Copy link
Owner

Swipe视图的transitionX没有恢复导致

@dogscar
Copy link
Author

dogscar commented Sep 15, 2022

暂时在onBind里把swipeView.x = 0f

@liangjingkanji
Copy link
Owner

已修复应该知道吧?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants