I have a bottom sheet dialog and exists EditText in layout. EditText is multiline, max lines is 3. I put :
commentET.setMovementMethod(new ScrollingMovementM
For those who are interested in Kotlin solution. Here it is
editText.setOnTouchListener { v, event -> v.parent.requestDisallowInterceptTouchEvent(true) when (event.action and MotionEvent.ACTION_MASK) { MotionEvent.ACTION_UP -> v.parent.requestDisallowInterceptTouchEvent(false) } false }