For my Android app I need to show numeric keyboard when the user clicks on an image, but without showing an EditText. I want to then be notified when the user pressed a specific key, so that I can handle UI appropiately.
How could it be done? Thank you
Try this...
InputMethodManager inputMethodManager = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);
inputMethodManager.toggleSoftInputFromWindow(imageview_reference.getApplicationWindowToken(), InputMethodManager.SHOW_FORCED, 0);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.