An introduction to the properties of the "Android Essentials" EditText
EditText inherit TextView, so edittext has TextView attribute characteristics, the following mainly introduces some edittext characteristics of the unique Input method properties
Android:layout_gravity= "center_vertical": Sets the location where the control is displayed: Default top, centered here, and bottom
Android:hin:Text the text message that is displayed when empty, you can set the color of the hint information by Textcolorhint. android:singleline: Sets single-line input, and once set to True, the text is not wrapped automatically. android:gray= "Top"  : multi-row pointer in the first row of the first position et.setselection (Et.length ());: Adjust the cursor to the last line android:autotext : automatic spelling help. There is no effect here, you may need additional input methods to support the line android:capitalize : Set the English letter capitalization type. Set the following values: Sentences only the first letter of the uppercase, words each word the first letter size, with a space to distinguish between words; characters each English letter is capitalized.  ANDROID:DIGITS : Sets which characters are allowed to be entered. such as "1234567890.+-*/%\n ()"  ANDROID:SINGLELINE : whether a single line or multiple lines, enter is to leave the text box or text box to add a new line android:numeric : If set, The TextView receives a digital input. The following values are set: Integer positive integer, signed signed integer, decimal with decimal point floating point number. android:inputtype: Set the type of text android:password : Password to Dot "." display text android:phonenumber : Set the input method for the phone number.  ANDROID:EDITABLE : Sets whether it can be edited. You can still get the cursor, but you cannot enter it. android:autolink= "All"  : Set text hyperlink style when you click the URL, skip to the URL android:textcolor = "#ff8c00": Font color android: Textstyle= "bold": Font, Bold, italic, bolditalic android:textalign= "center": EditText does not have this attribute, but TextView has Android:textcolorhighlight= "#cccccc": Selected ChineseThe background of the word, the default is blue android:textcolorhint= "#ffff00": Set the color of the message text, the default is gray android:textscalex= "1.5": Control the spacing between words and words android:typeface= "monospace": typeface, Normal, sans, serif, monospace android:background= "@null": space background, not here, Refers to Transparent android:layout_weight= "1": weights are useful when controlling the size of the control display. android:textappearance= "? Android:attr/textappearancelargeinverse": text appearance, here refers to the system comes with a look,? Indicates whether the system has this appearance, otherwise the default appearance is used. Source: http://liangruijun.blog.51cto.com/3061169/627350
Android Note-3