android:ems

android:ems was added in API Level 1

"The em is simply the font size. In an element with a 2in font, 1em thus means 2in. Expressing sizes, such as margins and paddings, in em means they are related to the font size, and if the user has a big font (e.g., on a big screen) or a small font (e.g., on a handheld device), the sizes will be in proportion. Declarations such as 'text-indent: 1.5em' and 'margin: 1em' are extremely common in CSS."

An "em" is a typographical unit of width, the width of a wide-ish letter like "m" pronounced "em". Similarly there is an "en". Similarly "en-dash" and "em-dash" for – and —

"but only when the layout_width is set to "wrap_content". Other layout_width values override the ems width setting."

1. Add a TextView to your activity. 

2. In the main.xml file, add the below line

  <TextView
    ....
      android:ems = "10"  
   />

3. Compile and run!