The meaning of android:ems = "10":
Refers to setting the width of the corresponding control to a width of 10 characters. When this property is set, the maximum width can only be displayed in a row.
-
<TextView
-
android:ems="1"
-
android:layout_width="wrap_content"
-
android:layout_height="wrap_content"
-
android:text="Hello world"/>
When ems = "1" is set, the display is as follows (same as EditText):
Note that this attribute will not take effect when android:layout_width="match_parent"