Skip to content

Commit

Permalink
save023
Browse files Browse the repository at this point in the history
  • Loading branch information
yuluyao committed Dec 26, 2019
1 parent ba8109b commit c4c16dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
12 changes: 6 additions & 6 deletions froglib/src/main/java/yuluyao/frog/touch/BaseTouchListener.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ abstract class BaseTouchListener : RecyclerView.SimpleOnItemTouchListener() {
return detector!!.onTouchEvent(e)
}

override fun onTouchEvent(rv: RecyclerView, e: MotionEvent) {
super.onTouchEvent(rv, e)
}
// override fun onTouchEvent(rv: RecyclerView, e: MotionEvent) {
// super.onTouchEvent(rv, e)
// }

override fun onRequestDisallowInterceptTouchEvent(disallowIntercept: Boolean) {
super.onRequestDisallowInterceptTouchEvent(disallowIntercept)
}
// override fun onRequestDisallowInterceptTouchEvent(disallowIntercept: Boolean) {
// super.onRequestDisallowInterceptTouchEvent(disallowIntercept)
// }


internal fun getTransformedMotionEvent(event: MotionEvent, child: View): MotionEvent? {
Expand Down
9 changes: 0 additions & 9 deletions froglib/src/main/java/yuluyao/frog/touch/FrogClickListener.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,6 @@ abstract class FrogClickListener : BaseTouchListener() {
return true
}

// override fun onShowPress(e: MotionEvent?) {
// e ?: return
// val itemView = recyclerView?.findChildViewUnder(e.x, e.y)
// itemView ?: return
// val position = recyclerView?.getChildAdapterPosition(itemView)
// position ?: return
// itemView.dispatchTouchEvent(getTransformedMotionEvent(e,itemView))
// }

}


Expand Down

0 comments on commit c4c16dd

Please sign in to comment.