Tag:textview android use detailed
/** limit textview number of words behind ellipsis android:ellipsize= "End" android:maxems= "9" android:singleline= "true" Android:dra wableleft= "@drawable/dingwei"//textview before the picture android:drawablepadding= "5DP"//textview and TextView before the gap between Android: EMS Sets the width of the TextView to n characters. Android:maxems sets the width of the textview to a maximum of n characters. Overwrite EMS option when used with EMS. Android:minems sets the width of the textview to a minimum of n characters. Overwrite EMS option when used with EMS. Android:maxlength limit the number of input characters. If set to 5, then only 5 characters/digits/letters can be entered. Android:lines sets the number of lines of text, two lines are displayed, even if the second row has no data. Android:maxlines sets the maximum number of lines of text to display, in combination with width or layout_width, beyond the partial wrap, and the number of lines beyond will not be displayed. Android:minlines sets the minimum number of lines of text, similar to lines. Android:linespacingextra sets the line spacing. Android:linespacingmultiplier sets the multiple of line spacing. If the "1.2" Android:numeric is set, the TextView has a numeric input method. The following values are set: Integer positive integer, signed signed integer, decimal with decimal point floating point number. Android:password with a small dot "." Displays the text Android:phonenumber set as the input for the phone number. Android:singleline sets the single-line display. If used with Layout_width, when the text cannot be displayed in its entirety, it is followed by "...". such as android:text= "Test_ singleline" android:singleline= "true" android:layout_width= "20DP" will show only "t ...". If you do not set Singleline or set to False, the text wraps automatically android:tExtappearance to set the appearance of text. As "? Android:attr/textappearancelargeinverse" here refers to the system comes with an appearance,? Indicates whether the system has this appearance, otherwise the default appearance is used. The values you can set are as follows: textappearancebutton/textappearanceinverse/textappearancelarge/textappearancelargeinverse/ Textappearancemedium/textappearancemediuminverse/textappearancesmall/textappearancesmallinverseandroid: TextColor Set the text color android:textcolorhighlight the background of the selected text, the default is blue Android:textcolorhint set the color of the message text, the default is gray. Used in conjunction with hint. Android:textcolorlink the color of the text link. Android:textscalex Sets the spacing between text, which defaults to 1.0f. See also the TextView. Android:textsize set text size, recommended unit of measure "SP", such as "15SP" Android:textstyle set glyph [Bold (bold) 0, Italic (italic) 1, bolditalic (coarse and oblique) 2] You can set one or more, using the "|" Separate android:typeface set the text font, which must be one of the following constant values: normal 0, sans 1, serif 2, monospace (equal width font) 3]android:height Set the height of the text area, support unit of measure: px (pixels )/dp/sp/in/mm (mm) android:maxheight set the maximum height of the text area Android:minheight set the minimum height of the text area Android:width set the width of the text area, support unit of measure: px (pixels)/ DP/SP/IN/MM (mm), which differs from the layout_width look here. Android:maxwidth set the maximum width of the text area Android:minwidth set the minimum width of the text area
Properties of Android TextView