用户登录
用户注册

分享至

如何在 android 的 EditText 上显示数字键盘?

  • 作者: 夏殇25474321
  • 来源: 51数据库
  • 2023-02-09

问题描述

我只是想在某个 EditText 获得焦点后立即切换到数字键盘模式.

I just basically want to switch to the number pad mode as soon a certain EditText has the focus.

推荐答案

你可以配置一个 inputType 为您的 <代码>编辑文本:

You can configure an inputType for your EditText:

<EditText android:inputType="number" ... />
软件
前端设计
程序设计
Java相关