<!-- 使 TextView 最多有这么多 em 宽 --><!--Makes the TextView be at most this many ems wide.--><attr name="maxEms" format="integer" min="0"/>
三、singleLine
<!--Constrains the text toa single horizontally scrolling line
instead of letting it wrap onto multiple lines, and advances
focus instead of inserting a newline when you press the
enter key.
Thedefault value is false(multi-line wrapped text mode)for non-editable text, but if
you specify any value for inputType, the default is true(single-line input field mode).{@deprecatedThis attribute is deprecated. Use<code>maxLines</code> instead tochange
the layout of a static text, and use the <code>textMultiLine</code> flag in the
inputType attribute instead for editable text views (if both singleLine and inputType
are supplied, the inputType flags will override the value of singleLine).}--><attr name="singleLine" format="boolean"/>
四、maxLength
<!-- 设置输入过滤器以将文本长度限制为指定数字 --><!--Set an input filter toconstrain the text length tothe specified number.--><attr name="maxLength" format="integer" min="0"/>