isShouldHideKeyBroad
Return true if current event coordinate is outside the EditView, false otherwise. Here is an example:
// In Activity.kt
override fun onTouchEvent(event: MotionEvent?): Boolean {
if (MotionEvent.ACTION_DOWN == event?.action) {
val view = currentFocus
if (null != view && view is EditText) {
if (view.isShouldHideKeyBroad(event)) {
view.hideKeyBroad()
}
}
}
return super.onTouchEvent(event)
}
Content copied to clipboard
Since
1.3.1