EditText的几种inputType: “text” Normal text keyboard. “textEmailAddress” Normal text keyboard with the @ character. “textUri” Normal text keyboard with the / character. “number” Basic numbe
//监听输入电话的位数editTel.addTextChangedListener(new TextWatcher() {private CharSequence temp;//监听前的文本 private int editStart;//光标开始位置 private int editEnd;//光标结束位置 private final int charMaxNum = 11; //最大