[英]InputType of EditText in Android
我想使用默認鍵盤,但也希望它與數字輸入類型一起使用。
有誰知道怎么做?
也許可以通過編程方式按“?123”鍵嗎?
我看了一下inputTypes列表 ,但是似乎沒有一個適合我的需求。
謝謝
您可以使用以下三種方法之一:
例如: android:inputType="numberDecimal"
android:inputType="numberDecimal"
在你的代碼中設置inputType = "number"
inputType = "number"
[英]Customize the InputType in EditText android
[英]Android: Expand the inputType of EditText?
[英]Default inputType of EditText in android
[英]Android EditText inputType not working
[英]Android EditText inputType textShortMessage
[英]Android EditText - InputType Validation?
[英]Android EditText with inputType and Enter button
[英]android EditText inputType for StreetNumber field
[英]Android keyboard InputType without EditText
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.