I’m going to summarize the EditText property here so you can query it later
InputType: Specifies the input text type. The corresponding method in the code is setInputType. The values of input types are described in the following table. If at the same time using a variety of text type, can using the vertical bar “|” the pieced together a variety of text types.
Input type | instructions |
---|---|
text | The text |
textPassword | Text password. Display with asterisk “*” instead |
textPassword | Text password. Display with asterisk “*” instead |
number | integer |
numberSigned | A signed number. Starting with a minus sign “-” is allowed. |
numberDecimal | A number with a decimal point |
numberPassword | Numeric password. Display with asterisk “*” instead |
datetime | Time and date format. In addition to numbers, you can enter dashes, slashes, Spaces, and colons. |
date | Date format. In addition to numbers, horizontal lines “-” and slashes “/” are allowed |
time | Time format. In addition to numbers, a colon “:” is allowed. |