How to Trigger the soft keyboard?

后端 未结 3 490
借酒劲吻你
借酒劲吻你 2021-01-27 13:14

How can I trigger the software keyboard and add listeners to it\'s keys?

3条回答
  •  遇见更好的自我
    2021-01-27 14:07

    To display the soft keyboard you might try: InputMethodManager.showSoftInput()

    As for adding listeners, the best you can do is add a TextChangedListener to an EditText to listen to the changes in the EditText view that are made via the keyboard.

提交回复
热议问题