question

jamespeterf avatar image
jamespeterf asked

Is there a way to supress the on-screen keypad?

I already have an Adroid app with it's own on-screen keypad (OSK). Is there a way to supress the one that automatically displays when an input field gets the focus?
fire tv
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Noted. The below code does not work in Fire TV getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); I am checking with right team and will get back shortly. Thanks.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Edit text (or other input field) will use the following style: STYLE: The actual input field will be coded in the layout xml like below: XML: And in your activity's/fragment's onResume method, please do the following: @Override public void onResume() { super.onResume(); // The rest of the resume logic goes here ................... editText.setInputType(InputType.TYPE_NULL); editText.requestFocus(); }
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.