How to show the numeric keypad software on Android TV?

I am trying to show the numeric keypad of software on Android TV when the edittext is focused.

I already tried this:

editText.setInputType(InputType.TYPE_CLASS_PHONE);

editText.setInputType(InputType.TYPE_CLASS_NUMBER);

editText.setRawInputType(Configuration.KEYBOARD_12KEY);

android:inputType="phone"

android:inputType="number"

but they only turn off text characters, do not make them invisible.

Is there a way to show the phone software keyboard on Android TV?

+4
source share
1 answer

You can check the Input Method Editor on the Android TV developer site. It has a sample for SoftKeyboard .

Hope this helps!

0
source

Source: https://habr.com/ru/post/1619203/


All Articles