[英]How to show numeric software keyboard on Android Tv?
I am trying to show numeric software keyboard on Android Tv when edittext is focused. 我正在尝试在关注edittext时在Android电视上显示数字软件键盘。
I have already tried these; 我已经尝试了这些;
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 disable text characters, don't make them invisible. 但他们只禁用文字字符,不要让它们不可见。
Is there a way to show phone type software keyboard on Android Tv? 有没有办法在Android电视上显示手机类型的软件键盘?
You can check out Input Method Editor on the Android TV developer site. 您可以在Android TV开发者网站上查看输入法编辑器 。 It has a sample there for SoftKeyboard .
它有一个SoftKeyboard样本。
Hope this helps! 希望这可以帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.