Android kotlin onTouchListener wants me to override performClick()
问题 I'm trying to get rid of a warning where Android Studio wants my onTouchListener to override performClick which I do, but the warning remains. draggableBar!!.setOnTouchListener(View.OnTouchListener { view, motionEvent -> when (motionEvent.getAction()) { MotionEvent.ACTION_DOWN -> { } MotionEvent.ACTION_UP -> { view.performClick() } } return@OnTouchListener true }) Could this be an Android Studio bug or am I doing something wrong? 回答1: Okay, I have the same problem but i fixed it by overriding