|
2999 | 2999 | <attr name="textColorLink" /> |
3000 | 3000 | <!-- Makes the cursor visible (the default) or invisible. --> |
3001 | 3001 | <attr name="cursorVisible" format="boolean" /> |
3002 | | - <!-- Makes the TextView be at most this many lines tall. --> |
| 3002 | + <!-- Makes the TextView be at most this many lines tall. |
| 3003 | +
|
| 3004 | + When used on an editable text, the <code>inputType</code> attribute's value must be |
| 3005 | + combined with the <code>textMultiLine</code> flag for the maxLines attribute to apply. --> |
3003 | 3006 | <attr name="maxLines" format="integer" min="0" /> |
3004 | 3007 | <!-- Makes the TextView be at most this many pixels tall. --> |
3005 | 3008 | <attr name="maxHeight" /> |
|
3009 | 3012 | You could get the same effect by specifying this number in the |
3010 | 3013 | layout parameters. --> |
3011 | 3014 | <attr name="height" format="dimension" /> |
3012 | | - <!-- Makes the TextView be at least this many lines tall. --> |
| 3015 | + <!-- Makes the TextView be at least this many lines tall. |
| 3016 | +
|
| 3017 | + When used on an editable text, the <code>inputType</code> attribute's value must be |
| 3018 | + combined with the <code>textMultiLine</code> flag for the minLines attribute to apply. --> |
3013 | 3019 | <attr name="minLines" format="integer" min="0" /> |
3014 | 3020 | <!-- Makes the TextView be at least this many pixels tall. --> |
3015 | 3021 | <attr name="minHeight" /> |
|
3040 | 3046 | <!-- Constrains the text to a single horizontally scrolling line |
3041 | 3047 | instead of letting it wrap onto multiple lines, and advances |
3042 | 3048 | focus instead of inserting a newline when you press the |
3043 | | - enter key. Note: for editable text views, it is better |
3044 | | - to control this using the textMultiLine flag in the inputType |
3045 | | - attribute. (If both singleLine and inputType are supplied, |
3046 | | - the inputType flags will override the value of singleLine.) |
3047 | | - {@deprecated This attribute is deprecated and is replaced by the textMultiLine flag |
3048 | | - in the inputType attribute. Use caution when altering existing layouts, as the |
3049 | | - default value of singeLine is false (multi-line mode), but if you specify any |
3050 | | - value for inputType, the default is single-line mode. (If both singleLine and |
3051 | | - inputType attributes are found, the inputType flags will override the value of |
3052 | | - singleLine.) } --> |
| 3049 | + enter key. |
| 3050 | +
|
| 3051 | + The default value is false (multi-line wrapped text mode) for non-editable text, but if |
| 3052 | + you specify any value for inputType, the default is true (single-line input field mode). |
| 3053 | +
|
| 3054 | + {@deprecated This attribute is deprecated. Use <code>maxLines</code> instead to change |
| 3055 | + the layout of a static text, and use the <code>textMultiLine</code> flag in the |
| 3056 | + inputType attribute instead for editable text views (if both singleLine and inputType |
| 3057 | + are supplied, the inputType flags will override the value of singleLine). } --> |
3053 | 3058 | <attr name="singleLine" format="boolean" /> |
3054 | 3059 | <!-- Specifies whether the TextView is enabled or not. {@deprecated Use state_enabled instead}. --> |
3055 | 3060 | <attr name="enabled" format="boolean" /> |
|
0 commit comments