[HOTFIX/#176] EditText에서 HideKeyboard 수정#178
Conversation
chattymin
left a comment
There was a problem hiding this comment.
김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!
| if (ev?.action == MotionEvent.ACTION_UP){ | ||
| val currentFocus = currentFocus | ||
| if (currentFocus != null && isTouchOutsideView(currentFocus, ev)){ | ||
| hideKeyboard(currentFocus) | ||
| currentFocus.clearFocus() | ||
| } | ||
| } | ||
| return super.dispatchTouchEvent(ev) | ||
| } | ||
|
|
||
| private fun isTouchOutsideView(view: View, ev: MotionEvent): Boolean { | ||
| val outRect = Rect(view.left, view.top, view.right, view.bottom) | ||
| return !outRect.contains(ev.rawX.toInt(), ev.rawY.toInt()) | ||
| } |
There was a problem hiding this comment.
김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!김상호는 신이야!!!
다음 프젝때부터 잘 쇽샥하겠습니다 ㅋㅋ
⛳️ Work Description
📸 Screenshot
📢 To Reviewers