We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i've try but don't work
chatView.setOnKeyListener { v, keyCode, event -> if (keyCode == KeyEvent.KEYCODE_ENTER && event.action == KeyEvent.ACTION_DOWN) { Toast.makeText(this, "Enter", Toast.LENGTH_LONG).show() if (v != null) { val imm = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager imm.hideSoftInputFromWindow(v.windowToken, 0) } window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN) return@setOnKeyListener true } return@setOnKeyListener false }
or how to max input line 1 ? i've try chatView.setMaxInputLine(1) but don't work
chatView.setMaxInputLine(1)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
i've try but don't work
chatView.setOnKeyListener { v, keyCode, event -> if (keyCode == KeyEvent.KEYCODE_ENTER && event.action == KeyEvent.ACTION_DOWN) { Toast.makeText(this, "Enter", Toast.LENGTH_LONG).show() if (v != null) { val imm = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager imm.hideSoftInputFromWindow(v.windowToken, 0) } window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN) return@setOnKeyListener true } return@setOnKeyListener false }
or how to max input line 1 ?
i've try
chatView.setMaxInputLine(1)
but don't workThe text was updated successfully, but these errors were encountered: