Android software keyboard switch between numeric and alphabetic programmatically

前端 未结 3 1355
被撕碎了的回忆
被撕碎了的回忆 2021-02-19 02:31

I have an EditText with inputMode = text. By default software keyboard is shown as alphabetical and user have to switch it to numeric by pressing specific key (

3条回答
  •  生来不讨喜
    2021-02-19 02:56

    you can achieve it by setting the below attribute to EditText on xml has follows android:inputType="number"

提交回复
热议问题