android EditText 弹出数字键盘 在xml中添加属性 android:digits=“1234567890.” 设置输入类型 txtBarCode.setInputType(EditorInfo.TYPE_CLASS_PHONE);