Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这样一个问题 - 如果您使用 DateTime 小部件,它在编辑日期值时的键盘如下所示:
但是,当您尝试在自定义 EditText 上设置数字或日期输入时,生成的键盘通常如下所示:
有没有办法像 EditText 上的第一个一样获得数字键盘?感谢帮助。
添加android:inputType="number"到您的编辑文本
android:inputType="number"
将 android:inputType="phone" 添加到您的编辑文本中