We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
注意
我的是RecyclerView 是多层嵌套的
private val gestureDetector = GestureDetector(context, object : GestureDetector.SimpleOnGestureListener() { override fun onSingleTapConfirmed(e: MotionEvent): Boolean { return true }
override fun onDoubleTap(e: MotionEvent): Boolean { val child = recyclerView.findChildViewUnder(e.x, e.y) child?.let { val position = recyclerView.getChildAdapterPosition(it) if (position != RecyclerView.NO_POSITION) { listener.onItemDoubleClick(it, position) } } return true } }) 双击删除后,返回的 postion 并不是 最新的 使用 BaseQuickAdapter 自带的 removeAt(postion)传入 listener.onItemDoubleClick(it, position)返回的 postion 会出现数组下标越界
使用 BaseQuickAdapter 自带的 remove(item)传入 删除的是正常的
The text was updated successfully, but these errors were encountered:
确实有问题,removeAt第二次删position没更新
Sorry, something went wrong.
No branches or pull requests
我的是RecyclerView 是多层嵌套的
private val gestureDetector =
GestureDetector(context, object : GestureDetector.SimpleOnGestureListener() {
override fun onSingleTapConfirmed(e: MotionEvent): Boolean {
return true
}
使用 BaseQuickAdapter 自带的 remove(item)传入 删除的是正常的
The text was updated successfully, but these errors were encountered: