title: How to make EditText smaller than default?
body: <p>I need to show a large number of EditText controls on a screen, each of which will only allow entering 0-2 digits. The default EditText size is too wide for me to show enough EditText controls on a screen, but I have been unable to figure out how to make them narrower. I have tried the following attributes in </p>
  
  <p><strong>XML:</strong> </p>
  
  <pre><code>android:maxLength="2"
  android:layout_width="20dip"
  android:maxWidth="20px"
  android:ems="2"
  android:maxEms="2"
  </code></pre>
  
  <p>So the question is: how can EditText be made smaller than default?</p>